Class InvalidateTokenResponse
- java.lang.Object
-
- org.elasticsearch.client.security.InvalidateTokenResponse
-
public final class InvalidateTokenResponse extends 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 ParseFieldERROR_COUNTstatic ParseFieldERRORSstatic ParseFieldINVALIDATED_TOKENSstatic ParseFieldPREVIOUSLY_INVALIDATED_TOKENS
-
Constructor Summary
Constructors Constructor Description InvalidateTokenResponse(int invalidatedTokens, int previouslyInvalidatedTokens, List<ElasticsearchException> errors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static InvalidateTokenResponsefromXContent(XContentParser parser)List<ElasticsearchException>getErrors()intgetErrorsCount()intgetInvalidatedTokens()intgetPreviouslyInvalidatedTokens()inthashCode()
-
-
-
Field Detail
-
INVALIDATED_TOKENS
public static final ParseField INVALIDATED_TOKENS
-
PREVIOUSLY_INVALIDATED_TOKENS
public static final ParseField PREVIOUSLY_INVALIDATED_TOKENS
-
ERROR_COUNT
public static final ParseField ERROR_COUNT
-
ERRORS
public static final ParseField ERRORS
-
-
Constructor Detail
-
InvalidateTokenResponse
public InvalidateTokenResponse(int invalidatedTokens, int previouslyInvalidatedTokens, @Nullable List<ElasticsearchException> errors)
-
-
Method Detail
-
getInvalidatedTokens
public int getInvalidatedTokens()
-
getPreviouslyInvalidatedTokens
public int getPreviouslyInvalidatedTokens()
-
getErrors
public List<ElasticsearchException> getErrors()
-
getErrorsCount
public int getErrorsCount()
-
fromXContent
public static InvalidateTokenResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-