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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeprecated.Tokens are used for application clients and principals. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.longDeprecated.Directory theuseroriginated, -1 if the token is for anapplication.getId()Deprecated.Deprecated.longDeprecated.Return the last accessed time.Deprecated.getName()Deprecated.Gets the name of the entity.Deprecated.Gets the token key.longDeprecated.Deprecated.inthashCode()Deprecated.booleanDeprecated.booleanDeprecated.voidsetLastAccessedTime(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_IDvalue.- See Also:
-
-
Constructor Details
-
Token
Deprecated.Copy constructor- Parameters:
other- token to copy
-
-
Method Details
-
getId
Deprecated.- Specified by:
getIdin interfaceAuthenticationToken
-
getRandomHash
Deprecated.Gets the token key.- Specified by:
getRandomHashin interfaceAuthenticationToken- Returns:
- The key.
-
getName
Deprecated.Gets the name of the entity.- Specified by:
getNamein interfaceAuthenticationToken- Returns:
- The name.
-
getUnaliasedUsername
Deprecated.- Specified by:
getUnaliasedUsernamein interfaceAuthenticationToken
-
getDirectoryId
public long getDirectoryId()Deprecated.Directory theuseroriginated, -1 if the token is for anapplication.- Specified by:
getDirectoryIdin interfaceAuthenticationToken- Returns:
- The
directoryID.
-
getRandomNumber
public long getRandomNumber()Deprecated.- Specified by:
getRandomNumberin interfaceAuthenticationToken
-
isUserToken
public boolean isUserToken()Deprecated.- Specified by:
isUserTokenin interfaceAuthenticationToken
-
isApplicationToken
public boolean isApplicationToken()Deprecated.- Specified by:
isApplicationTokenin interfaceAuthenticationToken
-
getCreatedDate
Deprecated.- Specified by:
getCreatedDatein interfaceAuthenticationToken
-
getLastAccessedTime
public long getLastAccessedTime()Deprecated.Return the last accessed time. If this object appears to have been loaded without thelastAccessedTimefield being set then a legacy value oflastAccessedDatewill be used instead.- Specified by:
getLastAccessedTimein interfaceAuthenticationToken
-
setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime) Deprecated. -
getLifetime
Deprecated.- Specified by:
getLifetimein interfaceAuthenticationToken- Returns:
- requested lifetime of the token
-
getIdentifierHash
Deprecated.- Specified by:
getIdentifierHashin interfaceAuthenticationToken
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
ImmutableTokeninstead. Since 3.6.0.