Annotation Interface CustomFormAuthenticationMechanismDefinition


@Retention(RUNTIME) @Target(TYPE) @Repeatable(List.class) public @interface CustomFormAuthenticationMechanismDefinition
Annotation used to define a container authentication mechanism that implements authentication resembling Servlet FORM authentication (Servlet spec 13.6.3).

Instead of posting back to a predefined action to continue the authentication dialog (Servlet spec 13.6.3 step 3), this variant depends on the application calling SecurityContext.authenticate(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, jakarta.security.enterprise.authentication.mechanism.http.AuthenticationParameters)

  • Element Details

    • qualifiers

      Class<?>[] qualifiers
      List of qualifier annotations.

      An HttpAuthenticationMechanism injection point with these qualifier annotations injects a bean that is produced by this CustomFormAuthenticationMechanismDefinition.

      The default value is CustomFormAuthenticationMechanism, indicating that this CustomFormAuthenticationMechanismDefinition produces bean instances of type HttpAuthenticationMechanism qualified by CustomFormAuthenticationMechanism.

      Returns:
      list of qualifiers.
      Since:
      4.0
      Default:
      {jakarta.security.enterprise.authentication.mechanism.http.CustomFormAuthenticationMechanismDefinition.CustomFormAuthenticationMechanism.class}