public class PasswordToken extends Object
Constructor and Description |
---|
PasswordToken() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Instant |
getDateCreated()
The date this token was created.
|
Instant |
getDateUsed()
The date this token was used, or null.
|
String |
getId()
The primary key of this token.
|
String |
getPurpose()
The reason this token was created.
|
String |
getToken()
The token value
|
String |
getUserId()
The ID of the user associated with this token.
|
int |
hashCode() |
boolean |
isUsed()
Whether or not this token has been used.
|
void |
setDateCreated(Instant dateCreated)
The date this token was created.
|
void |
setDateUsed(Instant dateUsed)
The date this token was used, or null.
|
void |
setId(String id)
The primary key of this token.
|
void |
setPurpose(String purpose)
The reason this token was created.
|
void |
setToken(String token)
The token value
|
void |
setUsed(boolean used)
Whether or not this token has been used.
|
void |
setUserId(String userId)
The ID of the user associated with this token.
|
String |
toString() |
public String getId()
public String getToken()
public Instant getDateCreated()
public Instant getDateUsed()
public boolean isUsed()
public String getUserId()
public String getPurpose()
public void setId(String id)
public void setToken(String token)
public void setDateCreated(Instant dateCreated)
public void setDateUsed(Instant dateUsed)
public void setUsed(boolean used)
public void setUserId(String userId)
public void setPurpose(String purpose)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.