Package org.exoplatform.web.security.jpa
Class JPAGateInTokenStorage
java.lang.Object
org.exoplatform.web.security.jpa.JPAGateInTokenStorage
- All Implemented Interfaces:
GateInTokenStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.exoplatform.web.security.GateInTokenStore
GateInTokenStore.TokenData -
Constructor Summary
ConstructorsConstructorDescriptionJPAGateInTokenStorage(org.exoplatform.container.xml.InitParams initParams, TokenDAO tokenDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddeleteToken(String tokenId) voiddeleteTokenOfUser(String user) voiddeleteTokensByUsernameAndType(String username, String tokenType) voidlongsize()
-
Constructor Details
-
JPAGateInTokenStorage
public JPAGateInTokenStorage(org.exoplatform.container.xml.InitParams initParams, TokenDAO tokenDAO)
-
-
Method Details
-
cleanLegacy
public void cleanLegacy()- Specified by:
cleanLegacyin interfaceGateInTokenStore
-
saveToken
- Specified by:
saveTokenin interfaceGateInTokenStore- Throws:
TokenExistsException
-
getToken
- Specified by:
getTokenin interfaceGateInTokenStore
-
deleteToken
- Specified by:
deleteTokenin interfaceGateInTokenStore
-
deleteTokenOfUser
- Specified by:
deleteTokenOfUserin interfaceGateInTokenStore
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceGateInTokenStore
-
cleanExpired
public void cleanExpired()- Specified by:
cleanExpiredin interfaceGateInTokenStore
-
size
public long size()- Specified by:
sizein interfaceGateInTokenStore
-
deleteTokensByUsernameAndType
- Specified by:
deleteTokensByUsernameAndTypein interfaceGateInTokenStore
-