Class InvalidateTokenRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, TransportRequest

public final class InvalidateTokenRequest extends LegacyActionRequest
Request for invalidating a token so that it can no longer be used
  • Constructor Details

    • InvalidateTokenRequest

      public InvalidateTokenRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • InvalidateTokenRequest

      public InvalidateTokenRequest()
    • InvalidateTokenRequest

      public InvalidateTokenRequest(@Nullable String tokenString, @Nullable String tokenType, @Nullable String realmName, @Nullable String userName)
      Parameters:
      tokenString - the string representation of the token to be invalidated
      tokenType - the type of the token to be invalidated
      realmName - the name of the realm for which all tokens will be invalidated
      userName - the principal of the user for which all tokens will be invalidated
    • InvalidateTokenRequest

      public InvalidateTokenRequest(String tokenString, String tokenType)
      Parameters:
      tokenString - the string representation of the token to be invalidated
      tokenType - the type of the token to be invalidated
  • Method Details