public class DefaultUserVerificationTokenManager extends Object implements UserVerificationTokenManager
Constructor and Description |
---|
DefaultUserVerificationTokenManager(UserVerificationTokenDao tokenStore,
com.atlassian.core.util.Clock clock) |
Modifier and Type | Method and 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) |
public DefaultUserVerificationTokenManager(UserVerificationTokenDao tokenStore, com.atlassian.core.util.Clock clock)
public String generateAndSaveToken(String userName, UserVerificationTokenType tokenType)
generateAndSaveToken
in interface UserVerificationTokenManager
public boolean hasToken(String userName, UserVerificationTokenType tokenType)
hasToken
in interface UserVerificationTokenManager
public boolean hasValidUserToken(String userName, UserVerificationTokenType tokenType, String token)
hasValidUserToken
in interface UserVerificationTokenManager
public boolean hasOutdatedUserToken(String userName, UserVerificationTokenType tokenType)
hasOutdatedUserToken
in interface UserVerificationTokenManager
public void clearToken(String userName, UserVerificationTokenType tokenType)
clearToken
in interface UserVerificationTokenManager
Copyright © 2003–2019 Atlassian. All rights reserved.