com.atlassian.bamboo.user
Class PasswordResetTokenImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.user.PasswordResetTokenImpl
- All Implemented Interfaces:
- BambooIdProvider, BambooObject, PasswordResetToken, java.lang.Cloneable
public class PasswordResetTokenImpl
- extends BambooEntityObject
- implements PasswordResetToken
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PasswordResetTokenImpl
protected PasswordResetTokenImpl()
- Only used by Hibernate.
PasswordResetTokenImpl
public PasswordResetTokenImpl(java.lang.String userName)
- Creates new token and initializes it to random 50-char string and current time.
- Parameters:
userName
- login name of a user
getToken
@NotNull
public java.lang.String getToken()
- Specified by:
getToken
in interface PasswordResetToken
- Returns:
- value of a token
setToken
protected void setToken(@NotNull
java.lang.String token)
getTokenCreationTime
@NotNull
public java.sql.Timestamp getTokenCreationTime()
- Specified by:
getTokenCreationTime
in interface PasswordResetToken
- Returns:
- time of creation
setTokenCreationTime
protected void setTokenCreationTime(@NotNull
java.sql.Timestamp tokenCreationTime)
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interface PasswordResetToken
- Returns:
- user login name
setUserName
public void setUserName(java.lang.String userName)
generate
public void generate()
- Description copied from interface:
PasswordResetToken
- Create new value of token and reset creation date to current time.
- Specified by:
generate
in interface PasswordResetToken
Copyright © 2012 Atlassian. All Rights Reserved.