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
Modifier and TypeClassDescriptionstatic @interface
static @interface
Enables multipleBasicAuthenticationMechanismDefinition
annotations on the same type. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>[]
List ofqualifier annotations
.Name of realm that will be sent via theWWW-Authenticate
header.
-
Element Details
-
realmName
String realmNameName of realm that will be sent via theWWW-Authenticate
header.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
HttpAuthenticationMechanism
injection point with these qualifier annotations injects a bean that is produced by thisBasicAuthenticationMechanismDefinition
.The default value is
BasicAuthenticationMechanism
, indicating that thisBasicAuthenticationMechanismDefinition
produces bean instances of typeHttpAuthenticationMechanism
qualified byBasicAuthenticationMechanism
.- Returns:
- list of qualifiers.
- Since:
- 4.0
- Default:
- {jakarta.security.enterprise.authentication.mechanism.http.BasicAuthenticationMechanismDefinition.BasicAuthenticationMechanism.class}
-