Class PasswordToken
- java.lang.Object
-
- com.broadleafcommerce.auth.user.domain.PasswordToken
-
public class PasswordToken extends Object
- Author:
- Nathan Moore (nathanmoore).
-
-
Constructor Summary
Constructors Constructor Description PasswordToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InstantgetDateCreated()The date this token was created.InstantgetDateUsed()The date this token was used, or null.StringgetId()The primary key of this token.StringgetPurpose()The reason this token was created.StringgetToken()The token valueStringgetUserId()The ID of the user associated with this token.inthashCode()booleanisUsed()Whether or not this token has been used.voidsetDateCreated(Instant dateCreated)The date this token was created.voidsetDateUsed(Instant dateUsed)The date this token was used, or null.voidsetId(String id)The primary key of this token.voidsetPurpose(String purpose)The reason this token was created.voidsetToken(String token)The token valuevoidsetUsed(boolean used)Whether or not this token has been used.voidsetUserId(String userId)The ID of the user associated with this token.StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
The primary key of this token.
-
getToken
public String getToken()
The token value
-
getDateCreated
public Instant getDateCreated()
The date this token was created.
-
getDateUsed
public Instant getDateUsed()
The date this token was used, or null.
-
isUsed
public boolean isUsed()
Whether or not this token has been used.
-
getUserId
public String getUserId()
The ID of the user associated with this token.
-
getPurpose
public String getPurpose()
The reason this token was created.
-
setId
public void setId(String id)
The primary key of this token.
-
setToken
public void setToken(String token)
The token value
-
setDateCreated
public void setDateCreated(Instant dateCreated)
The date this token was created.
-
setDateUsed
public void setDateUsed(Instant dateUsed)
The date this token was used, or null.
-
setUsed
public void setUsed(boolean used)
Whether or not this token has been used.
-
setUserId
public void setUserId(String userId)
The ID of the user associated with this token.
-
setPurpose
public void setPurpose(String purpose)
The reason this token was created.
-
canEqual
protected boolean canEqual(Object other)
-
-