Interface AccessTokenAuthorization
-
- All Known Implementing Classes:
MutableAccessTokenAuthorization
public interface AccessTokenAuthorization
Access token authorisation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.nimbusds.oauth2.sdk.id.ActorgetActor()Returns the token actor, in impersonation and delegation scenarios.List<com.nimbusds.oauth2.sdk.id.Audience>getAudienceList()Returns the audience list of the token, which may be the logical names of the intended resource servers.Set<String>getClaimNames()Returns the names of the consented OpenID claims to be accessed at the UserInfo endpoint.default net.minidev.json.JSONObjectgetClaimsData()Returns the optional claims fulfillment data.List<com.nimbusds.langtag.LangTag>getClaimsLocales()Returns the preferred locales for the consented OpenID claims.com.nimbusds.oauth2.sdk.auth.X509CertificateConfirmationgetClientCertificateConfirmation()Returns the client X.509 certificate confirmation (SHA-256 thumbprint) for mutual TLS.com.nimbusds.oauth2.sdk.id.ClientIDgetClientID()Returns the identifier of the client to which the token is issued.net.minidev.json.JSONObjectgetData()Returns the optional data for the token.InstantgetExpirationTime()Returns the expiration time of the token.com.nimbusds.oauth2.sdk.id.IssuergetIssuer()Returns the issuer of the token.InstantgetIssueTime()Returns the issue time of the token.com.nimbusds.oauth2.sdk.id.JWTIDgetJWTID()Returns the JSON Web Token (JWT) identifier of the token.default Map<String,Object>getOtherTopLevelParameters()Returns a map of other top-level parameters.net.minidev.json.JSONObjectgetPresetClaims()Returns the preset OpenID claims to be included in the UserInfo response.com.nimbusds.oauth2.sdk.ScopegetScope()Returns the scope of the token.com.nimbusds.oauth2.sdk.id.SubjectgetSubject()Returns the token subject.
-
-
-
Method Detail
-
getSubject
com.nimbusds.oauth2.sdk.id.Subject getSubject()
Returns the token subject.- Returns:
- The subject,
nullif not specified.
-
getActor
com.nimbusds.oauth2.sdk.id.Actor getActor()
Returns the token actor, in impersonation and delegation scenarios.- Returns:
- The actor,
nullif not specified.
-
getClientID
com.nimbusds.oauth2.sdk.id.ClientID getClientID()
Returns the identifier of the client to which the token is issued.- Returns:
- The client identifier,
nullif not specified.
-
getScope
com.nimbusds.oauth2.sdk.Scope getScope()
Returns the scope of the token.- Returns:
- The scope,
nullif not specified.
-
getExpirationTime
Instant getExpirationTime()
Returns the expiration time of the token.- Returns:
- The expiration time,
nullif not specified.
-
getIssueTime
Instant getIssueTime()
Returns the issue time of the token.- Returns:
- The issue time,
nullif not specified.
-
getIssuer
com.nimbusds.oauth2.sdk.id.Issuer getIssuer()
Returns the issuer of the token.- Returns:
- The issuer,
nullif not specified.
-
getAudienceList
List<com.nimbusds.oauth2.sdk.id.Audience> getAudienceList()
Returns the audience list of the token, which may be the logical names of the intended resource servers.- Returns:
- The audience list,
nullif not specified.
-
getJWTID
com.nimbusds.oauth2.sdk.id.JWTID getJWTID()
Returns the JSON Web Token (JWT) identifier of the token.- Returns:
- The JWT ID,
nullif not specified or applicable.
-
getClaimNames
Set<String> getClaimNames()
Returns the names of the consented OpenID claims to be accessed at the UserInfo endpoint.- Returns:
- The claim names,
nullif not specified.
-
getClaimsLocales
List<com.nimbusds.langtag.LangTag> getClaimsLocales()
Returns the preferred locales for the consented OpenID claims.- Returns:
- The preferred claims locales,
nullif not specified.
-
getPresetClaims
net.minidev.json.JSONObject getPresetClaims()
Returns the preset OpenID claims to be included in the UserInfo response.- Returns:
- The preset OpenID claims,
nullif not specified.
-
getData
net.minidev.json.JSONObject getData()
Returns the optional data for the token.- Returns:
- The optional data, represented as a JSON object,
nullif not specified.
-
getClientCertificateConfirmation
com.nimbusds.oauth2.sdk.auth.X509CertificateConfirmation getClientCertificateConfirmation()
Returns the client X.509 certificate confirmation (SHA-256 thumbprint) for mutual TLS.- Returns:
- The client X.509 certificate confirmation,
nullif not specified.
-
getOtherTopLevelParameters
default Map<String,Object> getOtherTopLevelParameters()
Returns a map of other top-level parameters.- Returns:
- Other top-level parameters, the values should map to JSON
entities,
nullif none.
-
getClaimsData
default net.minidev.json.JSONObject getClaimsData()
Returns the optional claims fulfillment data.- Returns:
- The claims fulfillment data,
nullif not specified.
-
-