public class TokenRevokeRequest extends Object implements Serializable
/auth/token/revoke API.
The /auth/token/revoke API revokes access/refresh tokens. The API
processes the request in the order shown below.
When the accessTokenIdentifier request parameter is given, the
access token identified by the identifier (and the corresponding refresh
token) is revoked.
Other request parameters are ignored and the revocation process ends here.
When the refreshTokenIdentifier request parameter is given, the
refresh token identified by the identifier (and the corresponding access
token) is revoked.
Other request parameters are ignored and the revocation process ends here.
When both the clientIdentifier request parameter and the subject request parameter are given, access/refresh tokens whose client
and subject match the specified values are revoked.
Other request parameters are ignored and the revocation process ends here.
When the clientIdentifier request parameter is given and the subject request parameter is not given, access/refresh tokens whose client
matches the specified value are revoked.
Other request parameters are ignored and the revocation process ends here.
When the subject request parameter is given and the clientIdentifier request parameter is not given, access/refresh tokens
whose subject matches the specified value are revoked.
Other request parameters are ignored and the revocation process ends here.
In other cases, that is, when none of the request parameters are given,
the API returns 400 Bad Request.
| Constructor and Description |
|---|
TokenRevokeRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenIdentifier()
Get the identifier of an access token to revoke.
|
String |
getClientIdentifier()
Get the identifier of a client.
|
String |
getRefreshTokenIdentifier()
Get the identifier of a refresh token to revoke.
|
String |
getSubject()
Get the subject of a resource owner.
|
TokenRevokeRequest |
setAccessTokenIdentifier(String identifier)
Set the identifier of an access token to revoke.
|
TokenRevokeRequest |
setClientIdentifier(String identifier)
Set the identifier of a client.
|
TokenRevokeRequest |
setRefreshTokenIdentifier(String identifier)
Set the identifier of a refresh token to revoke.
|
TokenRevokeRequest |
setSubject(String subject)
Set the subject of a resource owner.
|
public String getAccessTokenIdentifier()
The hash of an access token is recognized as an identifier as well as the access token itself.
public TokenRevokeRequest setAccessTokenIdentifier(String identifier)
The hash of an access token is recognized as an identifier as well as the access token itself.
identifier - The identifier of an access token to revoke.this instance.public String getRefreshTokenIdentifier()
The hash of a refresh token is recognized as an identifier as well as the refresh token itself.
public TokenRevokeRequest setRefreshTokenIdentifier(String identifier)
The hash of a refresh token is recognized as an identifier as well as the refresh token itself.
identifier - The identifier of a refresh token to revoke.this instance.public String getClientIdentifier()
Both the numeric client ID and the alias are recognized as an identifier of a client.
public TokenRevokeRequest setClientIdentifier(String identifier)
Both the numeric client ID and the alias are recognized as an identifier of a client.
identifier - The identifier of a client.this instance.public String getSubject()
public TokenRevokeRequest setSubject(String subject)
subject - The subject of a resource owner.this object.Copyright © 2022. All rights reserved.