Class AxelorRememberMeManager

  • All Implemented Interfaces:
    org.apache.shiro.mgt.RememberMeManager

    @Singleton
    public class AxelorRememberMeManager
    extends org.apache.shiro.web.mgt.CookieRememberMeManager
    RememberMe Manager

    This implements all of RememberMeManager interface and uses SameSite attribute for secure requests.

    • Field Summary

      • Fields inherited from class org.apache.shiro.web.mgt.CookieRememberMeManager

        DEFAULT_REMEMBER_ME_COOKIE_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forgetIdentity​(org.apache.shiro.subject.SubjectContext subjectContext)  
      org.apache.shiro.web.servlet.Cookie getCookie()  
      org.apache.shiro.subject.PrincipalCollection getRememberedPrincipals​(org.apache.shiro.subject.SubjectContext subjectContext)  
      protected javax.servlet.http.HttpServletRequest getRequest()  
      void onFailedLogin​(org.apache.shiro.subject.Subject subject, org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationException ae)  
      void onLogout​(org.apache.shiro.subject.Subject subject)  
      void onSuccessfulLogin​(org.apache.shiro.subject.Subject subject, org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo info)  
      protected void withRequest​(Object requestPairSource, Runnable task)  
      protected <T> T withRequest​(Object requestPairSource, Supplier<T> task)  
      • Methods inherited from class org.apache.shiro.web.mgt.CookieRememberMeManager

        forgetIdentity, getRememberedSerializedIdentity, rememberSerializedIdentity, setCookie
      • Methods inherited from class org.apache.shiro.mgt.AbstractRememberMeManager

        convertBytesToPrincipals, convertPrincipalsToBytes, decrypt, deserialize, encrypt, getCipherKey, getCipherService, getDecryptionCipherKey, getEncryptionCipherKey, getIdentityToRemember, getSerializer, isRememberMe, onRememberedPrincipalFailure, rememberIdentity, rememberIdentity, serialize, setCipherKey, setCipherService, setDecryptionCipherKey, setEncryptionCipherKey, setSerializer
    • Constructor Detail

      • AxelorRememberMeManager

        public AxelorRememberMeManager()
    • Method Detail

      • getRememberedPrincipals

        public org.apache.shiro.subject.PrincipalCollection getRememberedPrincipals​(org.apache.shiro.subject.SubjectContext subjectContext)
        Specified by:
        getRememberedPrincipals in interface org.apache.shiro.mgt.RememberMeManager
        Overrides:
        getRememberedPrincipals in class org.apache.shiro.mgt.AbstractRememberMeManager
      • forgetIdentity

        public void forgetIdentity​(org.apache.shiro.subject.SubjectContext subjectContext)
        Specified by:
        forgetIdentity in interface org.apache.shiro.mgt.RememberMeManager
        Overrides:
        forgetIdentity in class org.apache.shiro.web.mgt.CookieRememberMeManager
      • onSuccessfulLogin

        public void onSuccessfulLogin​(org.apache.shiro.subject.Subject subject,
                                      org.apache.shiro.authc.AuthenticationToken token,
                                      org.apache.shiro.authc.AuthenticationInfo info)
        Specified by:
        onSuccessfulLogin in interface org.apache.shiro.mgt.RememberMeManager
        Overrides:
        onSuccessfulLogin in class org.apache.shiro.mgt.AbstractRememberMeManager
      • onFailedLogin

        public void onFailedLogin​(org.apache.shiro.subject.Subject subject,
                                  org.apache.shiro.authc.AuthenticationToken token,
                                  org.apache.shiro.authc.AuthenticationException ae)
        Specified by:
        onFailedLogin in interface org.apache.shiro.mgt.RememberMeManager
        Overrides:
        onFailedLogin in class org.apache.shiro.mgt.AbstractRememberMeManager
      • onLogout

        public void onLogout​(org.apache.shiro.subject.Subject subject)
        Specified by:
        onLogout in interface org.apache.shiro.mgt.RememberMeManager
        Overrides:
        onLogout in class org.apache.shiro.mgt.AbstractRememberMeManager
      • getCookie

        public org.apache.shiro.web.servlet.Cookie getCookie()
        Overrides:
        getCookie in class org.apache.shiro.web.mgt.CookieRememberMeManager
      • getRequest

        protected javax.servlet.http.HttpServletRequest getRequest()
      • withRequest

        protected <T> T withRequest​(Object requestPairSource,
                                    Supplier<T> task)
      • withRequest

        protected void withRequest​(Object requestPairSource,
                                   Runnable task)