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.
| Constructor and Description |
|---|
IntrospectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.Copyright © 2017. All rights reserved.