Package com.atlassian.crowd.model.token
Class Token
java.lang.Object
com.atlassian.crowd.model.token.Token
- All Implemented Interfaces:
AuthenticationToken
,Serializable
Deprecated.
Holds the token information for an authenticated entity.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Deprecated.Tokens are used for application clients and principals. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.long
Deprecated.Directory theuser
originated, -1 if the token is for anapplication
.getId()
Deprecated.Deprecated.long
Deprecated.Return the last accessed time.Deprecated.getName()
Deprecated.Gets the name of the entity.Deprecated.Gets the token key.long
Deprecated.Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.boolean
Deprecated.void
setLastAccessedTime
(long lastAccessedTime) Deprecated.toString()
Deprecated.
-
Field Details
-
APPLICATION_TOKEN_DIRECTORY_ID
public static final long APPLICATION_TOKEN_DIRECTORY_IDDeprecated.Tokens are used for application clients and principals. If the stored token does not have a valid directory ID, the token is then for an application. The value for an invalid directory ID is theAPPLICATION_TOKEN_DIRECTORY_ID
value.- See Also:
-
-
Constructor Details
-
Token
Deprecated.Copy constructor- Parameters:
other
- token to copy
-
-
Method Details
-
getId
Deprecated.- Specified by:
getId
in interfaceAuthenticationToken
-
getRandomHash
Deprecated.Gets the token key.- Specified by:
getRandomHash
in interfaceAuthenticationToken
- Returns:
- The key.
-
getName
Deprecated.Gets the name of the entity.- Specified by:
getName
in interfaceAuthenticationToken
- Returns:
- The name.
-
getUnaliasedUsername
Deprecated.- Specified by:
getUnaliasedUsername
in interfaceAuthenticationToken
-
getDirectoryId
public long getDirectoryId()Deprecated.Directory theuser
originated, -1 if the token is for anapplication
.- Specified by:
getDirectoryId
in interfaceAuthenticationToken
- Returns:
- The
directory
ID.
-
getRandomNumber
public long getRandomNumber()Deprecated.- Specified by:
getRandomNumber
in interfaceAuthenticationToken
-
isUserToken
public boolean isUserToken()Deprecated.- Specified by:
isUserToken
in interfaceAuthenticationToken
-
isApplicationToken
public boolean isApplicationToken()Deprecated.- Specified by:
isApplicationToken
in interfaceAuthenticationToken
-
getCreatedDate
Deprecated.- Specified by:
getCreatedDate
in interfaceAuthenticationToken
-
getLastAccessedTime
public long getLastAccessedTime()Deprecated.Return the last accessed time. If this object appears to have been loaded without thelastAccessedTime
field being set then a legacy value oflastAccessedDate
will be used instead.- Specified by:
getLastAccessedTime
in interfaceAuthenticationToken
-
setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime) Deprecated. -
getLifetime
Deprecated.- Specified by:
getLifetime
in interfaceAuthenticationToken
- Returns:
- requested lifetime of the token
-
getIdentifierHash
Deprecated.- Specified by:
getIdentifierHash
in interfaceAuthenticationToken
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
ImmutableToken
instead. Since 3.6.0.