public class RevokeTokenRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.
| Constructor and Description |
|---|
RevokeTokenRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientId()
The client ID for the token that you want to revoke.
|
java.lang.String |
getClientSecret()
The secret for the client ID.
|
java.lang.String |
getToken()
The refresh token that you want to revoke.
|
int |
hashCode() |
void |
setClientId(java.lang.String clientId)
The client ID for the token that you want to revoke.
|
void |
setClientSecret(java.lang.String clientSecret)
The secret for the client ID.
|
void |
setToken(java.lang.String token)
The refresh token that you want to revoke.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RevokeTokenRequest |
withClientId(java.lang.String clientId)
The client ID for the token that you want to revoke.
|
RevokeTokenRequest |
withClientSecret(java.lang.String clientSecret)
The secret for the client ID.
|
RevokeTokenRequest |
withToken(java.lang.String token)
The refresh token that you want to revoke.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getToken()
The refresh token that you want to revoke.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The refresh token that you want to revoke.
public void setToken(java.lang.String token)
The refresh token that you want to revoke.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
token - The refresh token that you want to revoke.
public RevokeTokenRequest withToken(java.lang.String token)
The refresh token that you want to revoke.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
token - The refresh token that you want to revoke.
public java.lang.String getClientId()
The client ID for the token that you want to revoke.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
The client ID for the token that you want to revoke.
public void setClientId(java.lang.String clientId)
The client ID for the token that you want to revoke.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId - The client ID for the token that you want to revoke.
public RevokeTokenRequest withClientId(java.lang.String clientId)
The client ID for the token that you want to revoke.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId - The client ID for the token that you want to revoke.
public java.lang.String getClientSecret()
The secret for the client ID. This is required only if the client ID has a secret.
Constraints:
Length: 1 - 64
Pattern: [\w+]+
The secret for the client ID. This is required only if the client ID has a secret.
public void setClientSecret(java.lang.String clientSecret)
The secret for the client ID. This is required only if the client ID has a secret.
Constraints:
Length: 1 - 64
Pattern: [\w+]+
clientSecret - The secret for the client ID. This is required only if the client ID has a secret.
public RevokeTokenRequest withClientSecret(java.lang.String clientSecret)
The secret for the client ID. This is required only if the client ID has a secret.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+]+
clientSecret - The secret for the client ID. This is required only if the client ID has a secret.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object