public interface RememberMeManager
| Modifier and Type | Method and Description |
|---|---|
void |
forgetIdentity(SubjectContext
Forgets any remembered identity corresponding to the subject context map being used to build a subject instance.
|
PrincipalCollection |
getRememberedPrincipals(SubjectContext
Based on the specified subject context map being used to build a Subject instance, returns any previously remembered principals for the subject for automatic identity association (aka 'Remember Me').
|
void |
onFailedLogin(Subject
Reacts to a failed authentication attempt, typically by forgetting any previously remembered principals for the Subject.
|
void |
onLogout(Subject
Reacts to a Subject logging out of the application, typically by forgetting any previously remembered principals for the Subject.
|
void |
onSuccessfulLogin(Subject
Reacts to a successful authentication attempt, typically saving the principals to be retrieved ('remembered') for future system access.
|
PrincipalCollectiongetRememberedPrincipals(SubjectContext subjectContext)
Subject.Builder implementation. See the
SubjectFactory class constants for Shiro's known map keys.
subjectContext - the contextual data, usually provided by a
Subject.Builder implementation, that is being used to construct a
Subject instance.
null if none could be acquired.
void forgetIdentity(SubjectContextsubjectContext)
Subject.Builder implementation. See the
SubjectFactory class constants for Shiro's known map keys.
subjectContext - the contextual data, usually provided by a
Subject.Builder implementation, that is being used to construct a
Subject instance.
void onSuccessfulLogin(Subjectsubject, AuthenticationToken token, AuthenticationInfo info)
subject - the subject that executed a successful authentication attempt
token - the authentication token submitted resulting in a successful authentication attempt
info - the authenticationInfo returned as a result of the successful authentication attempt
void onFailedLogin(Subjectsubject, AuthenticationToken token, AuthenticationException ae)
subject - the subject that executed the failed authentication attempt
token - the authentication token submitted resulting in the failed authentication attempt
ae - the authentication exception thrown as a result of the failed authentication attempt
void onLogout(Subjectsubject)
subject - the subject logging out.