/** * Remembers a subject-unique identity for retrieval later. This implementation first * {@link #getIdentityToRemember resolves} the exact * {@link PrincipalCollection principals} to remember. It then remembers the principals by calling * {@link #rememberIdentity(org.apache.shiro.subject.Subject, org.apache.shiro.subject.PrincipalCollection)}. * <p/> * This implementation ignores the {@link AuthenticationToken} argument, but it is available to subclasses if * necessary for custom logic. * * @param subject the subject for which the principals are being remembered. * @param token the token that resulted in a successful authentication attempt. * @param authcInfo the authentication info resulting from the successful authentication attempt. */ public void rememberIdentity(Subject subject, AuthenticationToken token, AuthenticationInfo authcInfo) { PrincipalCollection principals = getIdentityToRemember(subject, authcInfo); rememberIdentity(subject, principals); }
/** * Remembers a subject-unique identity for retrieval later. This implementation first * {@link #getIdentityToRemember resolves} the exact * {@link PrincipalCollection principals} to remember. It then remembers the principals by calling * {@link #rememberIdentity(org.apache.shiro.subject.Subject, org.apache.shiro.subject.PrincipalCollection)}. * <p/> * This implementation ignores the {@link AuthenticationToken} argument, but it is available to subclasses if * necessary for custom logic. * * @param subject the subject for which the principals are being remembered. * @param token the token that resulted in a successful authentication attempt. * @param authcInfo the authentication info resulting from the successful authentication attempt. */ public void rememberIdentity(Subject subject, AuthenticationToken token, AuthenticationInfo authcInfo) { PrincipalCollection principals = getIdentityToRemember(subject, authcInfo); rememberIdentity(subject, principals); }
/** * Remembers a subject-unique identity for retrieval later. This implementation first * {@link #getIdentityToRemember resolves} the exact * {@link PrincipalCollection principals} to remember. It then remembers the principals by calling * {@link #rememberIdentity(org.apache.shiro.subject.Subject, org.apache.shiro.subject.PrincipalCollection)}. * <p/> * This implementation ignores the {@link AuthenticationToken} argument, but it is available to subclasses if * necessary for custom logic. * * @param subject the subject for which the principals are being remembered. * @param token the token that resulted in a successful authentication attempt. * @param authcInfo the authentication info resulting from the successful authentication attempt. */ public void rememberIdentity(Subject subject, AuthenticationToken token, AuthenticationInfo authcInfo) { PrincipalCollection principals = getIdentityToRemember(subject, authcInfo); rememberIdentity(subject, principals); }