public final class InternalExpirableUserToken extends Object implements Serializable, ExpirableUserToken
| Modifier and Type | Method and Description |
|---|---|
static InternalExpirableUserToken |
createChangeEmailToken(String token,
String username,
String newEmailAddress,
long expiryDate,
long directoryId) |
static InternalExpirableUserToken |
createInviteUserToken(String token,
String email,
long expiryDate,
long directoryId) |
static InternalExpirableUserToken |
createResetPasswordToken(String token,
String username,
String email,
long expiryDate,
long directoryId) |
boolean |
equals(Object o) |
long |
getDirectoryId()
The ID of the directory associated with the token.
|
String |
getEmailAddress()
An email address that can be associated with the token.
|
long |
getExpiryDate()
The date at which the token expires, in millis since the epoch.
|
long |
getId() |
String |
getToken()
A unique token.
|
ExpirableUserTokenType |
getType()
Type of the token, specifying with what feature in Crowd a given token is associated.
|
String |
getUsername()
A username that can be associated with the token.
|
int |
hashCode() |
void |
setType(ExpirableUserTokenType type) |
public static InternalExpirableUserToken createResetPasswordToken(String token, String username, String email, long expiryDate, long directoryId)
public static InternalExpirableUserToken createInviteUserToken(String token, String email, long expiryDate, long directoryId)
public static InternalExpirableUserToken createChangeEmailToken(String token, String username, String newEmailAddress, long expiryDate, long directoryId)
public long getId()
public String getToken()
ExpirableUserTokengetToken in interface ExpirableUserToken@Nullable public String getUsername()
ExpirableUserTokengetUsername in interface ExpirableUserToken@Nullable public String getEmailAddress()
ExpirableUserTokengetEmailAddress in interface ExpirableUserTokenpublic long getExpiryDate()
ExpirableUserTokengetExpiryDate in interface ExpirableUserTokenpublic long getDirectoryId()
ExpirableUserTokengetDirectoryId in interface ExpirableUserTokenpublic ExpirableUserTokenType getType()
ExpirableUserTokengetType in interface ExpirableUserTokenpublic void setType(ExpirableUserTokenType type)
Copyright © 2024 Atlassian. All rights reserved.