ImmutableToken instead. Since 3.6.0.@Deprecated public class Token extends Object implements Serializable, AuthenticationToken
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Token.Builder
Deprecated.  
  | 
| Modifier and Type | Field and Description | 
|---|---|
static long | 
APPLICATION_TOKEN_DIRECTORY_ID
Deprecated.  
Tokens are used for application clients and principals. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Token(Token other)
Deprecated.  
Copy constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)
Deprecated.  
  | 
Date | 
getCreatedDate()
Deprecated.  
  | 
long | 
getDirectoryId()
Deprecated.  
Directory the  
user originated, -1 if the token is for an
 application. | 
Long | 
getId()
Deprecated.  
  | 
String | 
getIdentifierHash()
Deprecated.  
  | 
long | 
getLastAccessedTime()
Deprecated.  
Return the last accessed time. 
 | 
TokenLifetime | 
getLifetime()
Deprecated.  
  | 
String | 
getName()
Deprecated.  
Gets the name of the entity. 
 | 
String | 
getRandomHash()
Deprecated.  
Gets the token key. 
 | 
long | 
getRandomNumber()
Deprecated.  
  | 
String | 
getUnaliasedUsername()
Deprecated.  
  | 
int | 
hashCode()
Deprecated.  
  | 
boolean | 
isApplicationToken()
Deprecated.  
  | 
boolean | 
isUserToken()
Deprecated.  
  | 
void | 
setLastAccessedTime(long lastAccessedTime)
Deprecated.  
  | 
String | 
toString()
Deprecated.  
  | 
public static final long APPLICATION_TOKEN_DIRECTORY_ID
APPLICATION_TOKEN_DIRECTORY_ID
 value.protected Token(Token other)
other - token to copypublic Long getId()
getId in interface AuthenticationTokenpublic String getRandomHash()
getRandomHash in interface AuthenticationTokenpublic String getName()
getName in interface AuthenticationTokenpublic String getUnaliasedUsername()
getUnaliasedUsername in interface AuthenticationTokenpublic long getDirectoryId()
user originated, -1 if the token is for an
 application.getDirectoryId in interface AuthenticationTokendirectory ID.public long getRandomNumber()
getRandomNumber in interface AuthenticationTokenpublic boolean isUserToken()
isUserToken in interface AuthenticationTokenpublic boolean isApplicationToken()
isApplicationToken in interface AuthenticationTokenpublic Date getCreatedDate()
getCreatedDate in interface AuthenticationTokenpublic long getLastAccessedTime()
lastAccessedTime field being set then a
 legacy value of lastAccessedDate will be used instead.getLastAccessedTime in interface AuthenticationTokenpublic void setLastAccessedTime(long lastAccessedTime)
public TokenLifetime getLifetime()
getLifetime in interface AuthenticationTokenpublic String getIdentifierHash()
getIdentifierHash in interface AuthenticationTokenCopyright © 2023 Atlassian. All rights reserved.