Class InvalidateTokenResponse
java.lang.Object
org.elasticsearch.client.security.InvalidateTokenResponse
public final class InvalidateTokenResponse
extends java.lang.Object
Response when invalidating one or multiple OAuth2 access tokens and refresh tokens. Returns
information concerning how many tokens were invalidated, how many of the tokens that
were attempted to be invalidated were already invalid, and if there were any errors
encountered.
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
ERROR_COUNT
static org.elasticsearch.common.ParseField
ERRORS
static org.elasticsearch.common.ParseField
INVALIDATED_TOKENS
static org.elasticsearch.common.ParseField
PREVIOUSLY_INVALIDATED_TOKENS
-
Constructor Summary
Constructors Constructor Description InvalidateTokenResponse(int invalidatedTokens, int previouslyInvalidatedTokens, java.util.List<org.elasticsearch.ElasticsearchException> errors)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
static InvalidateTokenResponse
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
java.util.List<org.elasticsearch.ElasticsearchException>
getErrors()
int
getErrorsCount()
int
getInvalidatedTokens()
int
getPreviouslyInvalidatedTokens()
int
hashCode()
-
Field Details
-
INVALIDATED_TOKENS
public static final org.elasticsearch.common.ParseField INVALIDATED_TOKENS -
PREVIOUSLY_INVALIDATED_TOKENS
public static final org.elasticsearch.common.ParseField PREVIOUSLY_INVALIDATED_TOKENS -
ERROR_COUNT
public static final org.elasticsearch.common.ParseField ERROR_COUNT -
ERRORS
public static final org.elasticsearch.common.ParseField ERRORS
-
-
Constructor Details
-
InvalidateTokenResponse
public InvalidateTokenResponse(int invalidatedTokens, int previouslyInvalidatedTokens, @Nullable java.util.List<org.elasticsearch.ElasticsearchException> errors)
-
-
Method Details
-
getInvalidatedTokens
public int getInvalidatedTokens() -
getPreviouslyInvalidatedTokens
public int getPreviouslyInvalidatedTokens() -
getErrors
public java.util.List<org.elasticsearch.ElasticsearchException> getErrors() -
getErrorsCount
public int getErrorsCount() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
fromXContent
public static InvalidateTokenResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-