IdentityStore is a mechanism for validating a caller's credentials
and accessing a caller's identity attributes. It can be used by an
authentication mechanism, such as a JSR 375 HttpAuthenticationMechanism
or a JSR 196 (JASPIC) ServerAuthModule.
Stores which do only validation or only group lookup are allowed.
An IdentityStore obtains identity data from a persistent store,
such as a database, LDAP server, or file.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IdentityStore.ValidationType
Determines the type of validation (operations) that should be done by this store Note This does not set or determine what the |
| Modifier and Type | Field and Description |
|---|---|
| public static final Set | DEFAULT_VALIDATION_TYPES
Default set of validation types. |
| Modifier and Type | Method and Description |
|---|---|
| public default Set | getCallerGroups(CredentialValidationResult
The validationResult)CredentialValidationResult returned
by a previous call to validate(Credential).Returns groups for the caller, who is identified by the |
| public default int | Returns: The priority value. Lower values indicate higher priorities.Determines the order of invocation for multiple |
| public default CredentialValidationResult | Returns: The validation result.The credential to validate. credential)Validates the given credential. |
| public default Set |
| DEFAULT_VALIDATION_TYPES | back to summary |
|---|---|
| public static final Set<IdentityStore. Default set of validation types. Contains | |
| getCallerGroups | back to summary |
|---|---|
| public default Set Returns groups for the caller, who is identified by the
Callers (i.e.,
| |
| priority | back to summary |
|---|---|
| public default int priority() Determines the order of invocation for multiple
| |
| validate | back to summary |
|---|---|
| public default CredentialValidationResult validate(Credential credential) Validates the given credential.
As a convenience, a default implementation is provided that looks up an overload of this method
that has, as its one and only parameter, a subclass of
Note that the overloaded method is only called when the actual type passed into this method will exactly match the parameter type of the overloaded method. There's no attempt being done to find the most specific overloaded method such as specified in JLS 15.2.
This method returns a
| |
| validationTypes | back to summary |
|---|---|
| public default Set Determines the type of validation the
Implementations of this API should not return a direct reference
to a
| |
Note
This does not set or determine what the IdentityStore is capable of,
but only what the store is configured to be used for.
| Modifier and Type | Field and Description |
|---|---|
| public static final IdentityStore. | PROVIDE_GROUPS
Only groups for a principal, possibly established by another IdentityStore, are taken from this store. |
| public static final IdentityStore. | VALIDATE
Only validation is performed, so no groups, are taken from this store. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IdentityStore. | |
| public static IdentityStore. |
| PROVIDE_GROUPS | back to summary |
|---|---|
| public static final IdentityStore. Only groups for a principal, possibly established by another IdentityStore, are taken from this store. | |
| VALIDATE | back to summary |
|---|---|
| public static final IdentityStore. Only validation is performed, so no groups, are taken from this store. | |
| ValidationType | back to summary |
|---|---|
| private ValidationType() | |
| valueOf | back to summary |
|---|---|
| public static IdentityStore. | |
| values | back to summary |
|---|---|
| public static IdentityStore. | |