|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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. |
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()
|
TokenLifetime |
getLifetime()
|
String |
getName()
Gets the name of the entity. |
String |
getRandomHash()
Gets the token key. |
long |
getRandomNumber()
|
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.
Method Detail |
---|
public Long getId()
public String getRandomHash()
public String getName()
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()
public void setLastAccessedTime(long lastAccessedTime)
public TokenLifetime getLifetime()
public String getIdentifierHash()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |