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 AuthenticationToken
public String getRandomHash()
getRandomHash
in interface AuthenticationToken
public String getName()
getName
in interface AuthenticationToken
public String getUnaliasedUsername()
getUnaliasedUsername
in interface AuthenticationToken
public long getDirectoryId()
user
originated, -1 if the token is for an
application
.getDirectoryId
in interface AuthenticationToken
directory
ID.public long getRandomNumber()
getRandomNumber
in interface AuthenticationToken
public boolean isUserToken()
isUserToken
in interface AuthenticationToken
public boolean isApplicationToken()
isApplicationToken
in interface AuthenticationToken
public Date getCreatedDate()
getCreatedDate
in interface AuthenticationToken
public long getLastAccessedTime()
lastAccessedTime
field being set then a
legacy value of lastAccessedDate
will be used instead.getLastAccessedTime
in interface AuthenticationToken
public void setLastAccessedTime(long lastAccessedTime)
public TokenLifetime getLifetime()
getLifetime
in interface AuthenticationToken
public String getIdentifierHash()
getIdentifierHash
in interface AuthenticationToken
Copyright © 2020 Atlassian. All rights reserved.