public class ImmutableToken extends Object implements AuthenticationToken
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableToken.Builder |
APPLICATION_TOKEN_DIRECTORY_ID
Modifier | Constructor and Description |
---|---|
protected |
ImmutableToken(Long id,
String identifierHash,
String randomHash,
long randomNumber,
Date createdDate,
long lastAccessedTime,
Long duration,
String name,
long directoryId,
String unaliasedUsername) |
Modifier and Type | Method and Description |
---|---|
static ImmutableToken.Builder |
builder() |
static ImmutableToken.Builder |
builder(ImmutableToken data) |
boolean |
equals(Object o) |
Date |
getCreatedDate() |
long |
getDirectoryId() |
Long |
getDuration() |
Long |
getId() |
String |
getIdentifierHash() |
long |
getLastAccessedTime() |
TokenLifetime |
getLifetime() |
String |
getName() |
String |
getRandomHash() |
long |
getRandomNumber() |
String |
getUnaliasedUsername() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isApplicationToken, isUserToken
public Long getId()
getId
in interface AuthenticationToken
public String getIdentifierHash()
getIdentifierHash
in interface AuthenticationToken
public String getRandomHash()
getRandomHash
in interface AuthenticationToken
public long getRandomNumber()
getRandomNumber
in interface AuthenticationToken
public Date getCreatedDate()
getCreatedDate
in interface AuthenticationToken
public long getLastAccessedTime()
getLastAccessedTime
in interface AuthenticationToken
public Long getDuration()
public String getName()
getName
in interface AuthenticationToken
public long getDirectoryId()
getDirectoryId
in interface AuthenticationToken
public String getUnaliasedUsername()
getUnaliasedUsername
in interface AuthenticationToken
public TokenLifetime getLifetime()
getLifetime
in interface AuthenticationToken
public static ImmutableToken.Builder builder()
public static ImmutableToken.Builder builder(ImmutableToken data)
Copyright © 2020 Atlassian. All rights reserved.