public interface RememberMeIdentityStore
RememberMeIdentityStoreis a mechanism for validating a caller's credentials and accessing a caller's identity attributes that's specifically tailored for the "remember me" feature.
This is not intended to be directly used by an authentication mechanism such as
the JSR 375
HttpAuthenticationMechanism or the JSR 196 (JASPIC)
ServerAuthModule. Instead, the interceptor implementation backing the
RememberMe annotation is intended to use this.
|Modifier and Type||Method and Description|
Associates the given principal and groups with a token.
Dissociates the principal and groups that were associated with the token before and removes the token itself.
Validates the given credential.
CredentialValidationResult validate(RememberMeCredential credential)
credential- The credential to validate.
String generateLoginToken(CallerPrincipal callerPrincipal, Set<String> groups)
callerPrincipal- The principal to be associated.
groups- The groups the principal is in.
void removeLoginToken(String token)
If the token did not exist (i.e. no principal and groups were associated with that token) no exception will be thrown.
token- The token that is to be removed.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.