public class StandardIntrospectionRequest extends Object implements Serializable
/api/auth/introspection/standard API.
Note that the API and /api/auth/introspection API are different.
/api/auth/introspection/standard API exists to help your
authorization server provide its own introspection API which complies
with RFC 7662 (OAuth
2.0 Token Introspection).
parameters(REQUIRED)Request parameters which comply with the introspection request defined in "2.1. Introspection Request" in RFC 7662. The following is an example value of
parameters.token=pNj1h24a4geA_YHilxrshkRkxJDsyXBZWKp3hZ5ND7A&token_type_hint=access_tokenThe implementation of the introspection endpoint of your authorization server will receive an HTTP POST [RFC 7231] request with parameters in the "
application/x-www-form-urlencoded" format. It is the entity body of the request that Authlete's/api/auth/introspection/standardAPI expects as the value ofparameters.withHiddenProperties(OPTIONAL)Flag indicating whether to include hidden properties in the output.
Authlete has a mechanism whereby to associate arbitrary key-value pairs with an access token. Each key-value pair has a
hiddenattribute. By default, key-value pairs whosehiddenattribute is true are not embedded in the standard introspection output.If the
withHiddenPropertiesrequest parameter is given and its value istrue,/api/auth/introspection/standardAPI includes all the associated key-value pairs into the output regardless of the value of thehiddenattribute.
StandardIntrospectionResponse,
AuthleteApi.standardIntrospection(StandardIntrospectionRequest),
Serialized Form| Constructor and Description |
|---|
StandardIntrospectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getParameters()
Get the value of
parameters that represents the
request parameters which the introspection endpoint of
the authorization server received. |
boolean |
isWithHiddenProperties()
Get the flag which indicates whether to include hidden properties
associated with the token in the output.
|
StandardIntrospectionRequest |
setParameters(String parameters)
Set the value of
parameters that represents the
request parameters which the introspection endpoint of
the authorization server received. |
StandardIntrospectionRequest |
setWithHiddenProperties(boolean with)
Set the flag which indicates whether to include hidden properties
associated with the token in the output.
|
public String getParameters()
parameters that represents the
request parameters which the introspection endpoint of
the authorization server received.token=pNj1h24a4geA_YHilxrshkRkxJDsyXBZWKp3hZ5ND7A".public StandardIntrospectionRequest setParameters(String parameters)
parameters that represents the
request parameters which the introspection endpoint of
the authorization server received.parameters - Request parameters which comply with RFC 7662.
For example, "token=pNj1h24a4geA_YHilxrshkRkxJDsyXBZWKp3hZ5ND7A".this object.public boolean isWithHiddenProperties()
Authlete has a mechanism whereby to associate arbitrary key-value pairs
with an access token. Each key-value pair has a hidden attribute.
By default, key-value pairs whose hidden attribute is true are
not embedded in the standard introspection output.
If the withHiddenProperties request parameter is given and its
value is true, /api/auth/introspection/standard API
includes all the associated key-value pairs into the output regardless
of the value of the hidden attribute.
true if hidden properties are included in the output.public StandardIntrospectionRequest setWithHiddenProperties(boolean with)
See the description of isWithHiddenProperties() for details.
with - true to include hidden properties in the output.this object.Copyright © 2022. All rights reserved.