|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.token.Token
public class Token
Holds the token information for an authenticated entity.
| Nested Class Summary | |
|---|---|
static class |
Token.Builder
|
| Field Summary | |
|---|---|
static long |
APPLICATION_TOKEN_DIRECTORY_ID
Tokens are used for application clients and principals. |
| Constructor Summary | |
|---|---|
protected |
Token(Token other)
Copy constructor |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Date |
getCreatedDate()
|
long |
getDirectoryId()
Directory the user originated, -1 if the token is for an
application. |
Long |
getId()
|
String |
getIdentifierHash()
|
long |
getLastAccessedTime()
Return the last accessed time. |
TokenLifetime |
getLifetime()
|
String |
getName()
Gets the name of the entity. |
String |
getRandomHash()
Gets the token key. |
long |
getRandomNumber()
|
String |
getUnaliasedUsername()
|
int |
hashCode()
|
boolean |
isApplicationToken()
|
boolean |
isUserToken()
|
void |
setLastAccessedTime(long lastAccessedTime)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long APPLICATION_TOKEN_DIRECTORY_ID
APPLICATION_TOKEN_DIRECTORY_ID
value.
| Constructor Detail |
|---|
protected Token(Token other)
other - token to copy| Method Detail |
|---|
public Long getId()
public String getRandomHash()
public String getName()
public String getUnaliasedUsername()
public long getDirectoryId()
user originated, -1 if the token is for an
application.
directory ID.public long getRandomNumber()
public boolean isUserToken()
public boolean isApplicationToken()
public Date getCreatedDate()
public long getLastAccessedTime()
lastAccessedTime field being set then a
legacy value of lastAccessedDate will be used instead.
public void setLastAccessedTime(long lastAccessedTime)
public TokenLifetime getLifetime()
public String getIdentifierHash()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||