public final class InternalExpirableUserToken extends Object implements Serializable, ExpirableUserToken
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getUsername()
A username that can be associated with the token.
|
int |
hashCode() |
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 long getId()
public String getToken()
ExpirableUserToken
getToken
in interface ExpirableUserToken
@Nullable public String getUsername()
ExpirableUserToken
getUsername
in interface ExpirableUserToken
@Nullable public String getEmailAddress()
ExpirableUserToken
getEmailAddress
in interface ExpirableUserToken
public long getExpiryDate()
ExpirableUserToken
getExpiryDate
in interface ExpirableUserToken
public long getDirectoryId()
ExpirableUserToken
getDirectoryId
in interface ExpirableUserToken
Copyright © 2021 Atlassian. All rights reserved.