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.
| 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[] |
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 |
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.Copyright © 2019. All rights reserved.