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 certificate presented by the client, used to validate TLS client certificate bound access tokens. 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.
| Constructor and Description |
|---|
IntrospectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientCertificate()
Get the client certificate, used to validate binding against
access tokens using the TLS client certificate confirmation method.
|
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.
|
String[] |
getScopes()
Get the scopes which are required to access the target
protected resource.
|
String |
getSubject()
Get the subject (= end-user ID managed by the service
implementation) which is required to access the target
protected resource.
|
String |
getToken()
Get the access token.
|
IntrospectionRequest |
setClientCertificate(String clientCertificate)
Set the client certificate, used to validate binding against
access tokens using the TLS client certificate confirmation method.
|
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 |
setScopes(String[] scopes)
Set the scopes which are required to access the target
protected resource.
|
IntrospectionRequest |
setSubject(String subject)
Set the subject (= end-user ID managed by the service
implementation) which is required to access the target
protected resource.
|
IntrospectionRequest |
setToken(String token)
Set the access token which has been issued by Authlete.
|
public String getToken()
public IntrospectionRequest setToken(String token)
public String[] getScopes()
public IntrospectionRequest setScopes(String[] scopes)
/auth/introspection API returns FORBIDDEN
as the action and insufficent_scope as the error
code.scopes - Scopes required to access the target protected
resource. If null is given, Authlete's
/auth/introspection endpoint does not
perform scope checking.public String getSubject()
public IntrospectionRequest setSubject(String subject)
/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. If null is given,
Authlete's /auth/introspection endpoint
does not perform subject checking.public String getClientCertificate()
public IntrospectionRequest setClientCertificate(String clientCertificate)
clientCertificate - The certificate in PEM format.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.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
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.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
dpop - The DPoP header string.this object.public String getHtm()
DPoP
header.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
"GET".public IntrospectionRequest setHtm(String htm)
DPoP
header.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
htm - The HTTP method as a string. For example, "GET".this object.public String getHtu()
DPoP header.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
public IntrospectionRequest setHtu(String htu)
DPoP header.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
htu - The URL of the protected resource endpoint.this object.Copyright © 2020. All rights reserved.