@Immutable
public class CustomerToken
extends java.lang.Object
resetting customer password
and when
verifying customer email
.
Use getValue()
to identify the token.
Modifier | Constructor and Description |
---|---|
protected |
CustomerToken() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getCreatedAt()
Date and time when this token was created.
|
java.lang.String |
getCustomerId()
Id of the customer for who the token was created.
|
org.joda.time.DateTime |
getExpiresAt()
Date and time when this token will expire.
|
java.lang.String |
getValue()
The value of the token.
|
java.lang.String |
toString() |
@Nonnull public java.lang.String getCustomerId()
@Nonnull public java.lang.String getValue()
You should include this value as-is in URLs sent in emails.
You can pass this as-is to
CustomerService.byToken
.
@Nonnull public org.joda.time.DateTime getCreatedAt()
@Nonnull public org.joda.time.DateTime getExpiresAt()
public java.lang.String toString()
toString
in class java.lang.Object