Class InvalidateTokenResponse
java.lang.Object
org.elasticsearch.client.security.InvalidateTokenResponse
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
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
-
Constructor Summary
ConstructorDescriptionInvalidateTokenResponse
(int invalidatedTokens, int previouslyInvalidatedTokens, List<ElasticsearchException> errors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static InvalidateTokenResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) int
int
int
int
hashCode()
-
Field Details
-
INVALIDATED_TOKENS
public static final org.elasticsearch.xcontent.ParseField INVALIDATED_TOKENS -
PREVIOUSLY_INVALIDATED_TOKENS
public static final org.elasticsearch.xcontent.ParseField PREVIOUSLY_INVALIDATED_TOKENS -
ERROR_COUNT
public static final org.elasticsearch.xcontent.ParseField ERROR_COUNT -
ERRORS
public static final org.elasticsearch.xcontent.ParseField ERRORS
-
-
Constructor Details
-
InvalidateTokenResponse
public InvalidateTokenResponse(int invalidatedTokens, int previouslyInvalidatedTokens, @Nullable List<ElasticsearchException> errors)
-
-
Method Details
-
getInvalidatedTokens
public int getInvalidatedTokens() -
getPreviouslyInvalidatedTokens
public int getPreviouslyInvalidatedTokens() -
getErrors
-
getErrorsCount
public int getErrorsCount() -
equals
-
hashCode
public int hashCode() -
fromXContent
public static InvalidateTokenResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-