@NotExtensible public final class TokenValidationResult extends java.lang.Object
The decision as to whether an access token is accepted or not varies by
product. For the Directory Server, Directory Proxy Server,
Data Sync Server, or Data Metrics Server, different REST APIs
may enforce different authorization rules, depending on their configuration;
please refer to the relevant documentation. In general, a token's
active
property must be true.
For the PingAuthorize Server, authorization decisions are made by the policy
engine. All properties of the TokenValidationResult may be accessed by
policies; however, the default policy may only examine a subset of those
properties (e.g. especially the active
property).
Modifier and Type | Class and Description |
---|---|
static class |
TokenValidationResult.Builder
A Builder for TokenValidationResult.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAccessToken()
Get the actual access token as issued by the authorization server.
|
java.lang.Boolean |
getActive()
Get whether the token is active.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalProperties()
Get any extension properties associated with the token.
|
java.util.Set<java.lang.String> |
getAudience()
Get the token's intended audience(s).
|
java.lang.String |
getClientId()
Get the OAuth2 client Id of the client that requested the token.
|
java.lang.Long |
getExpirationTime()
Get the token expiration time in seconds since January 1 1970 UTC.
|
java.lang.Long |
getIssuedAt()
Get the token issue time in seconds since January 1 1970 UTC.
|
java.lang.Long |
getNotUsedBefore()
Get the not used before time in seconds since January 1 1070 UTC.
|
java.util.Set<java.lang.String> |
getScope()
Get the scopes granted to this token.
|
java.lang.String |
getTokenIdentifier()
Get the unique identifier for this token.
|
java.lang.String |
getTokenSubject()
Get the token subject as defined in JWT [RFC7519].
|
java.lang.String |
getTokenType()
Get the token type.
|
java.lang.String |
getUsername()
Get a human-readable user name for the resource owner that authorized
the token.
|
int |
hashCode() |
public java.lang.String getAccessToken()
public java.lang.Boolean getActive()
public java.util.Set<java.lang.String> getScope()
public java.lang.String getClientId()
public java.lang.String getUsername()
public java.lang.String getTokenType()
public java.lang.Long getExpirationTime()
public java.lang.Long getIssuedAt()
public java.lang.Long getNotUsedBefore()
public java.lang.String getTokenSubject()
public java.util.Set<java.lang.String> getAudience()
public java.lang.String getTokenIdentifier()
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object