Class InvalidateTokenResponse
- java.lang.Object
-
- org.elasticsearch.client.security.InvalidateTokenResponse
-
public final class InvalidateTokenResponse extends java.lang.ObjectResponse 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 ParseFieldCREATEDstatic ParseFieldERROR_COUNTstatic ParseFieldERRORSstatic ParseFieldINVALIDATED_TOKENSstatic ParseFieldPREVIOUSLY_INVALIDATED_TOKENS
-
Constructor Summary
Constructors Constructor Description InvalidateTokenResponse(boolean created, int invalidatedTokens, int previouslyInvalidatedTokens, java.util.List<ElasticsearchException> errors)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static InvalidateTokenResponsefromXContent(XContentParser parser)java.util.List<ElasticsearchException>getErrors()intgetErrorsCount()intgetInvalidatedTokens()intgetPreviouslyInvalidatedTokens()inthashCode()booleanisCreated()
-
-
-
Field Detail
-
CREATED
public static final ParseField CREATED
-
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(boolean created, int invalidatedTokens, int previouslyInvalidatedTokens, @Nullable java.util.List<ElasticsearchException> errors)
-
-
Method Detail
-
isCreated
public boolean isCreated()
-
getInvalidatedTokens
public int getInvalidatedTokens()
-
getPreviouslyInvalidatedTokens
public int getPreviouslyInvalidatedTokens()
-
getErrors
public java.util.List<ElasticsearchException> getErrors()
-
getErrorsCount
public int getErrorsCount()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
fromXContent
public static InvalidateTokenResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-