Package com.axelor.auth.pac4j
Class AxelorRememberMeManager
- java.lang.Object
-
- org.apache.shiro.mgt.AbstractRememberMeManager
-
- org.apache.shiro.web.mgt.CookieRememberMeManager
-
- com.axelor.auth.pac4j.AxelorRememberMeManager
-
- All Implemented Interfaces:
org.apache.shiro.mgt.RememberMeManager
@Singleton public class AxelorRememberMeManager extends org.apache.shiro.web.mgt.CookieRememberMeManager
RememberMe ManagerThis implements all of
RememberMeManager
interface and uses SameSite attribute for secure requests.
-
-
Constructor Summary
Constructors Constructor Description AxelorRememberMeManager()
-
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
-
-
-
-
Method Detail
-
getRememberedPrincipals
public org.apache.shiro.subject.PrincipalCollection getRememberedPrincipals(org.apache.shiro.subject.SubjectContext subjectContext)
- Specified by:
getRememberedPrincipals
in interfaceorg.apache.shiro.mgt.RememberMeManager
- Overrides:
getRememberedPrincipals
in classorg.apache.shiro.mgt.AbstractRememberMeManager
-
forgetIdentity
public void forgetIdentity(org.apache.shiro.subject.SubjectContext subjectContext)
- Specified by:
forgetIdentity
in interfaceorg.apache.shiro.mgt.RememberMeManager
- Overrides:
forgetIdentity
in classorg.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 interfaceorg.apache.shiro.mgt.RememberMeManager
- Overrides:
onSuccessfulLogin
in classorg.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 interfaceorg.apache.shiro.mgt.RememberMeManager
- Overrides:
onFailedLogin
in classorg.apache.shiro.mgt.AbstractRememberMeManager
-
onLogout
public void onLogout(org.apache.shiro.subject.Subject subject)
- Specified by:
onLogout
in interfaceorg.apache.shiro.mgt.RememberMeManager
- Overrides:
onLogout
in classorg.apache.shiro.mgt.AbstractRememberMeManager
-
getCookie
public org.apache.shiro.web.servlet.Cookie getCookie()
- Overrides:
getCookie
in classorg.apache.shiro.web.mgt.CookieRememberMeManager
-
getRequest
protected javax.servlet.http.HttpServletRequest getRequest()
-
-