public class AccessToken extends Object implements Serializable
BearerAccessTokenManagementPlugin
.Constructor and Description |
---|
AccessToken(long expiresAt,
Map<String,AttributeValue> attributes,
String scopeString,
String clientId,
String accessGrantGuid)
Constructor for the AccessToken.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessGrantGuid()
Get the access grant GUID of this access token.
|
Map<String,AttributeValue> |
getAttributes()
Get the attributes of this access token.
|
List<String> |
getAudience()
A list of identifiers representing the intended audience for this
access token.
|
String |
getClientId()
Get the client ID of this access token.
|
long |
getExpiresAt()
Returns when this access token expires.
|
String |
getIssuer()
Get the issuer of this access token.
|
String |
getScope()
Get the scope of this access token.
|
String |
getTokenIdentifier()
Get the unique identifier for this access token.
|
boolean |
hasAccessGrantGuid()
Returns whether or not this access token has an access grant GUID.
|
boolean |
isExpired()
Checks whether or not this access token has expired.
|
void |
setAudience(List<String> audience)
Set the list of audience members this access token is intended for.
|
void |
setExpiresAt(long exp)
Set when this access token expires.
|
void |
setIssuer(String issuer)
Set the issuer of this access token.
|
void |
setTokenIdentifier(String tokenIdentifier)
Set the unique identifier for this access token.
|
public AccessToken(long expiresAt, Map<String,AttributeValue> attributes, String scopeString, String clientId, String accessGrantGuid)
expiresAt
- timestamp of when the access token expires.attributes
- The attributes of this access token.scopeString
- The scope of this access token.clientId
- The client ID of this access token.accessGrantGuid
- The access grant GUID of this access token.public long getExpiresAt()
public void setExpiresAt(long exp)
exp
- Timestamp of when this access token expires.public boolean isExpired()
public Map<String,AttributeValue> getAttributes()
public String getScope()
public String getClientId()
public String getAccessGrantGuid()
public boolean hasAccessGrantGuid()
public List<String> getAudience()
public void setAudience(List<String> audience)
audience
- - List of audience members.public String getIssuer()
public void setIssuer(String issuer)
issuer
- - The issuer of this access token.public String getTokenIdentifier()
public void setTokenIdentifier(String tokenIdentifier)
tokenIdentifier
- - The unique identifier.Copyright 2019 Ping Identity Corp. All rights reserved.