public class PasswordResetTokenImpl extends BambooEntityObject implements PasswordResetToken
id| Modifier | Constructor and Description |
|---|---|
protected |
PasswordResetTokenImpl()
Only used by Hibernate.
|
|
PasswordResetTokenImpl(String userName)
Creates new token and initializes it to random 50-char string and current time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
String |
getToken() |
Timestamp |
getTokenCreationTime() |
String |
getUserName() |
protected void |
setToken(String token) |
protected void |
setTokenCreationTime(Timestamp tokenCreationTime) |
void |
setUserName(String userName) |
equals, getId, hashCode, setIdprotected PasswordResetTokenImpl()
public PasswordResetTokenImpl(String userName)
userName - login name of a user@NotNull public String getToken()
getToken in interface PasswordResetTokenprotected void setToken(@NotNull
String token)
@NotNull public Timestamp getTokenCreationTime()
getTokenCreationTime in interface PasswordResetTokenprotected void setTokenCreationTime(@NotNull
Timestamp tokenCreationTime)
public String getUserName()
getUserName in interface PasswordResetTokenpublic void setUserName(String userName)
public void generate()
generate in interface PasswordResetTokenCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.