public class IntrospectionRequest extends Object implements Serializable
/auth/introspection API.
token(REQUIRED)An access token to introspect.
scopes(OPTIONAL)Scopes that should be covered by the access token.
subject(OPTIONAL)The subject that should be associated with the access token.
clientCertificate(OPTIONAL)The client certificate used in the mutual TLS connection established between the client application and the protected resource endpoint. See RFC 8705 OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens for details.
dpop(OPTIONAL)The value of the
DPoPHTTP header. See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details.htm(OPTIONAL)The HTTP method of the request to the protected resource endpoint. See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details.
htu(OPTIONAL)The URL of the protected resource endpoint. See OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) for details.
resources(OPTIONAL)Resource indicators that should be covered by the access token. See RFC 8707 Resource Indicators for OAuth 2.0 for details.
| Constructor and Description |
|---|
IntrospectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientCertificate()
Get the client certificate used in the mutual TLS connection established
between the client application and the protected resource endpoint.
|
String |
getDpop()
Get the
DPoP header presented by the client during the request
to the resource server. |
String |
getHtm()
Get the HTTP method of the request from the client to the protected
resource endpoint.
|
String |
getHtu()
Get the URL of the protected resource endpoint.
|
URI[] |
getResources()
Get the resource indicators that the access token should cover.
|
String[] |
getScopes()
Get the scopes which are required to access the protected resource
endpoint.
|
String |
getSubject()
Get the subject (= end-user ID managed by the service implementation)
which is required to access the protected resource endpoint.
|
String |
getToken()
Get the access token to introspect.
|
IntrospectionRequest |
setClientCertificate(String clientCertificate)
Set the client certificate used in the mutual TLS connection established
between the client application and the protected resource endpoint.
|
IntrospectionRequest |
setDpop(String dpop)
Set the
DPoP header presented by the client during the request
to the resource server. |
IntrospectionRequest |
setHtm(String htm)
Set the HTTP method of the request from the client to the protected
resource endpoint.
|
IntrospectionRequest |
setHtu(String htu)
Set the URL of the protected resource endpoint.
|
IntrospectionRequest |
setResources(URI[] resources)
Set the resource indicators that the access token should cover.
|
IntrospectionRequest |
setScopes(String[] scopes)
Set the scopes which are required to access the protected resource
endpoint.
|
IntrospectionRequest |
setSubject(String subject)
Set the subject (= end-user ID managed by the service implementation)
which is required to access the protected resource endpoint.
|
IntrospectionRequest |
setToken(String token)
Set the access token to introspect.
|
public String getToken()
public IntrospectionRequest setToken(String token)
token - The access token.this object.public String[] getScopes()
public IntrospectionRequest setScopes(String[] scopes)
If the array contains a scope which is not covered by the access token,
Authlete's /auth/introspection API returns FORBIDDEN as
the action and insufficent_scope as the error code.
scopes - Scopes required to access the protected resource endpoint.
If null is given, the /auth/introspection
API does not perform scope checking.this object.public String getSubject()
public IntrospectionRequest setSubject(String subject)
If the specified subject is different from the one associated with the
access token, Authlete's /auth/introspection API returns
FORBIDDEN as the action and invalid_request as the error
code.
subject - Subject (= end-user ID managed by the service implementation)
which is required to access the protected resource endpoint.
If null is given, the /auth/introspection API
does not perform subject checking.this object.public String getClientCertificate()
public IntrospectionRequest setClientCertificate(String clientCertificate)
If the access token is bound to a client certificate, this parameter is used for validation.
clientCertificate - The client certificate in PEM format.this object.public String getDpop()
DPoP header presented by the client during the request
to the resource server. This header contains a signed JWT which
includes the public key that is paired with the private key used to
sign it.DPoP header string.public IntrospectionRequest setDpop(String dpop)
DPoP header presented by the client during the request
to the resource server. This header contains a signed JWT which
includes the public key that is paired with the private key used to
sign it.
If the access token is bound to a public key via DPoP, this parameter is used for validation.
dpop - The DPoP header string.this object.public String getHtm()
DPoP
header."GET".public IntrospectionRequest setHtm(String htm)
DPoP
header.
If the access token is bound to a public key via DPoP, this parameter is used for validation.
htm - The HTTP method as a string. For example, "GET".this object.public String getHtu()
DPoP header.public IntrospectionRequest setHtu(String htu)
DPoP header.
If the access token is bound to a public key via DPoP, this parameter is used for validation.
htu - The URL of the protected resource endpoint.this object.public URI[] getResources()
public IntrospectionRequest setResources(URI[] resources)
resources - The resource indicators that the access token should cover to
access the protected resource endpoint. If null is
given, the /auth/introspection API does not perform
resource indicator checking.this object.Copyright © 2022. All rights reserved.