@Entity public class PasswordResetTokenImpl extends BambooEntityObject implements PasswordResetToken
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()
Create new value of token and reset creation date to current time.
|
String |
getToken() |
Timestamp |
getTokenCreationTime() |
String |
getUserName() |
protected void |
setToken(String token) |
protected void |
setTokenCreationTime(Timestamp tokenCreationTime) |
void |
setUserName(String userName) |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
protected PasswordResetTokenImpl()
public PasswordResetTokenImpl(String userName)
userName
- login name of a user@NotNull public String getToken()
getToken
in interface PasswordResetToken
protected void setToken(@NotNull String token)
@NotNull public Timestamp getTokenCreationTime()
getTokenCreationTime
in interface PasswordResetToken
protected void setTokenCreationTime(@NotNull Timestamp tokenCreationTime)
public String getUserName()
getUserName
in interface PasswordResetToken
public void setUserName(String userName)
public void generate()
PasswordResetToken
generate
in interface PasswordResetToken
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.