Class BandanaUserVerificationTokenDao
- java.lang.Object
-
- com.atlassian.confluence.user.persistence.dao.BandanaUserVerificationTokenDao
-
- All Implemented Interfaces:
UserVerificationTokenDao
public class BandanaUserVerificationTokenDao extends Object implements UserVerificationTokenDao
StoresUserVerificationToken
objects in Bandana.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description BandanaUserVerificationTokenDao(com.atlassian.bandana.BandanaManager bandanaManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearToken(String userName, UserVerificationTokenType tokenType)
UserVerificationToken
getToken(String userName, UserVerificationTokenType tokenType)
Iterable<String>
getUsernamesByTokenType(UserVerificationTokenType tokenType)
void
storeToken(UserVerificationToken token)
-
-
-
Method Detail
-
storeToken
public void storeToken(UserVerificationToken token)
- Specified by:
storeToken
in interfaceUserVerificationTokenDao
-
getToken
public UserVerificationToken getToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
getToken
in interfaceUserVerificationTokenDao
-
clearToken
public void clearToken(String userName, UserVerificationTokenType tokenType)
- Specified by:
clearToken
in interfaceUserVerificationTokenDao
-
getUsernamesByTokenType
public Iterable<String> getUsernamesByTokenType(UserVerificationTokenType tokenType)
- Specified by:
getUsernamesByTokenType
in interfaceUserVerificationTokenDao
- Parameters:
tokenType
- the token type- Returns:
- a list of usernames for which tokens of this type are generated
-
-