Class 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 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
    • 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()
      • getErrorsCount

        public int getErrorsCount()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object