Module jakarta.security
Interface IdentityStoreHandler
public interface IdentityStoreHandler
IdentityStoreHandler is a mechanism for validating a caller's
credentials, and accessing a caller's identity attributes, by consulting
a set of one or more IdentityStores.
It is intended for use by an authentication mechanism, such as an
HttpAuthenticationMechanism (Jakarta Security) or a ServerAuthModule
(Jakarta Authentication).
Beans should inject only this handler, and not IdentityStore
directly, as multiple stores may exist.
Implementations of Jakarta Security must supply a default implementation of
IdentityStoreHandler that behaves as described in the Jakarta Security
specification document.
Applications do not need to supply an IdentityStoreHandler
unless application-specific behavior is desired.
-
Method Summary
Modifier and TypeMethodDescriptionvalidate(Credential credential) Validate the givenCredentialand return the identity and attributes of the caller it represents.
-
Method Details
-
validate
Validate the givenCredentialand return the identity and attributes of the caller it represents.Implementations of this method will typically invoke the
validate()andgetCallerGroups()methods of one or moreIdentityStores and return an aggregated result.- Parameters:
credential- The credential to validate.- Returns:
- The validation result.
-