RememberMeManager

A RememberMeManager is responsible for remembering a Subject's identity across that Subject's sessions with the application.

Members

Functions

forgetIdentity
void forgetIdentity(SubjectContext subjectContext)

Forgets any remembered identity corresponding to the subject context map being used to build a subject instance. <p/> The context map is usually populated by a {@link Subject.Builder} implementation. See the {@link SubjectFactory} class constants for Shiro's known map keys.

getRememberedPrincipals
PrincipalCollection getRememberedPrincipals(SubjectContext 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'). <p/> The context map is usually populated by a {@link Subject.Builder} implementation. See the {@link SubjectFactory} class constants for Shiro's known map keys.

onFailedLogin
void onFailedLogin(Subject subject, AuthenticationToken token, AuthenticationException ae)

Reacts to a failed authentication attempt, typically by forgetting any previously remembered principals for the Subject.

onLogout
void onLogout(Subject subject)

Reacts to a Subject logging out of the application, typically by forgetting any previously remembered principals for the Subject.

onSuccessfulLogin
void onSuccessfulLogin(Subject subject, AuthenticationToken token, AuthenticationInfo info)

Reacts to a successful authentication attempt, typically saving the principals to be retrieved ('remembered') for future system access.

Meta