Module org.elasticsearch.xcore
Class InvalidateTokenRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.xpack.core.security.action.token.InvalidateTokenRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
Request for invalidating a token so that it can no longer be used
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionInvalidateTokenRequest(String tokenString, String tokenType) InvalidateTokenRequest(String tokenString, String tokenType, String realmName, String userName) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRealmName(String realmName) voidsetUserName(String userName) validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
InvalidateTokenRequest
- 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 invalidatedtokenType- the type of the token to be invalidatedrealmName- the name of the realm for which all tokens will be invalidateduserName- the principal of the user for which all tokens will be invalidated
-
InvalidateTokenRequest
- Parameters:
tokenString- the string representation of the token to be invalidatedtokenType- the type of the token to be invalidated
-
-
Method Details
-
validate
- Specified by:
validatein classActionRequest
-
getTokenString
-
getTokenType
-
getRealmName
-
setRealmName
-
getUserName
-
setUserName
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-