Class ForgotPasswordSecurityTokenImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.security.domain.ForgotPasswordSecurityTokenImpl
- All Implemented Interfaces:
Serializable,ForgotPasswordSecurityToken
@Entity
public class ForgotPasswordSecurityTokenImpl
extends Object
implements ForgotPasswordSecurityToken
Created by bpolster.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the userId that this token was created for.Date the token was createdgetToken()Returns the security token.Date the token was used to reset the password.inthashCode()booleanReturns true if the token has already been used.voidsetAdminUserId(Long adminUserId) Store the userId that this token is associated with.voidsetCreateDate(Date createDate) Set the generation date for the token.voidSets the security token.voidsetTokenUsedDate(Date tokenUsedDate) Set the date the token was used to reset the password.voidsetTokenUsedFlag(boolean tokenUsedFlag) Sets the token used flag.
-
Field Details
-
token
-
createDate
-
tokenUsedDate
-
adminUserId
-
tokenUsedFlag
protected boolean tokenUsedFlag
-
-
Constructor Details
-
ForgotPasswordSecurityTokenImpl
public ForgotPasswordSecurityTokenImpl()
-
-
Method Details
-
getToken
Description copied from interface:ForgotPasswordSecurityTokenReturns the security token.- Specified by:
getTokenin interfaceForgotPasswordSecurityToken- Returns:
-
setToken
Description copied from interface:ForgotPasswordSecurityTokenSets the security token.- Specified by:
setTokenin interfaceForgotPasswordSecurityToken
-
getCreateDate
Description copied from interface:ForgotPasswordSecurityTokenDate the token was created- Specified by:
getCreateDatein interfaceForgotPasswordSecurityToken- Returns:
-
setCreateDate
Description copied from interface:ForgotPasswordSecurityTokenSet the generation date for the token.- Specified by:
setCreateDatein interfaceForgotPasswordSecurityToken
-
getTokenUsedDate
Description copied from interface:ForgotPasswordSecurityTokenDate the token was used to reset the password.- Specified by:
getTokenUsedDatein interfaceForgotPasswordSecurityToken- Returns:
-
setTokenUsedDate
Description copied from interface:ForgotPasswordSecurityTokenSet the date the token was used to reset the password.- Specified by:
setTokenUsedDatein interfaceForgotPasswordSecurityToken
-
getAdminUserId
Description copied from interface:ForgotPasswordSecurityTokenReturn the userId that this token was created for.- Specified by:
getAdminUserIdin interfaceForgotPasswordSecurityToken- Returns:
-
setAdminUserId
Description copied from interface:ForgotPasswordSecurityTokenStore the userId that this token is associated with.- Specified by:
setAdminUserIdin interfaceForgotPasswordSecurityToken
-
isTokenUsedFlag
public boolean isTokenUsedFlag()Description copied from interface:ForgotPasswordSecurityTokenReturns true if the token has already been used.- Specified by:
isTokenUsedFlagin interfaceForgotPasswordSecurityToken
-
setTokenUsedFlag
public void setTokenUsedFlag(boolean tokenUsedFlag) Description copied from interface:ForgotPasswordSecurityTokenSets the token used flag.- Specified by:
setTokenUsedFlagin interfaceForgotPasswordSecurityToken
-
equals
-
hashCode
public int hashCode()
-