Package com.atlassian.confluence.user
Class DefaultUserVerificationTokenManager
- java.lang.Object
-
- com.atlassian.confluence.user.DefaultUserVerificationTokenManager
-
- All Implemented Interfaces:
UserVerificationTokenManager
public class DefaultUserVerificationTokenManager extends Object implements UserVerificationTokenManager
-
-
Constructor Summary
Constructors Constructor Description DefaultUserVerificationTokenManager(UserVerificationTokenDao tokenStore, com.atlassian.core.util.Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearToken(String userName, UserVerificationTokenType tokenType)
String
generateAndSaveToken(String userName, UserVerificationTokenType tokenType)
boolean
hasOutdatedUserToken(String userName, UserVerificationTokenType tokenType)
boolean
hasToken(String userName, UserVerificationTokenType tokenType)
boolean
hasValidUserToken(String userName, UserVerificationTokenType tokenType, String token)
-
-
-
Constructor Detail
-
DefaultUserVerificationTokenManager
public DefaultUserVerificationTokenManager(UserVerificationTokenDao tokenStore, com.atlassian.core.util.Clock clock)
-
-
Method Detail
-
generateAndSaveToken
public String generateAndSaveToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
generateAndSaveToken
in interfaceUserVerificationTokenManager
-
hasToken
public boolean hasToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
hasToken
in interfaceUserVerificationTokenManager
-
hasValidUserToken
public boolean hasValidUserToken(String userName, UserVerificationTokenType tokenType, String token)
- Specified by:
hasValidUserToken
in interfaceUserVerificationTokenManager
-
hasOutdatedUserToken
public boolean hasOutdatedUserToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
hasOutdatedUserToken
in interfaceUserVerificationTokenManager
-
clearToken
public void clearToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
clearToken
in interfaceUserVerificationTokenManager
-
-