Annotation Interface BasicAuthenticationMechanismDefinition
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(List.class)
public @interface BasicAuthenticationMechanismDefinition
Annotation used to define a container authentication mechanism that implements
the HTTP basic access authentication protocol as defined by the Servlet spec (13.6.1)
and make that implementation available as an enabled CDI bean.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic @interfaceEnables multipleBasicAuthenticationMechanismDefinitionannotations on the same type. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]List ofqualifier annotations.Name of realm that will be sent via theWWW-Authenticateheader.
-
Element Details
-
realmName
String realmNameName of realm that will be sent via theWWW-Authenticateheader.Note that this realm name does not couple a named identity store configuration to the authentication mechanism.
- Returns:
- Name of realm
- Default:
- ""
-
qualifiers
Class<?>[] qualifiersList ofqualifier annotations.An
HttpAuthenticationMechanisminjection point with these qualifier annotations injects a bean that is produced by thisBasicAuthenticationMechanismDefinition.The default value is
BasicAuthenticationMechanism, indicating that thisBasicAuthenticationMechanismDefinitionproduces bean instances of typeHttpAuthenticationMechanismqualified byBasicAuthenticationMechanism.- Returns:
- list of qualifiers.
- Since:
- 4.0
- Default:
- {jakarta.security.enterprise.authentication.mechanism.http.BasicAuthenticationMechanismDefinition.BasicAuthenticationMechanism.class}
-