Module org.elasticsearch.xcore
Class GrantApiKeyRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.xpack.core.security.action.GrantRequest
org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
Request class used for the creation of an API key on behalf of another user.
Logically this is similar to
CreateApiKeyRequest, but is for cases when the user that has permission to call this action
is different to the user for whom the API key should be created-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.core.security.action.GrantRequest
grantFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApiKeyRequest(CreateApiKeyRequest apiKeyRequest) voidsetRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy) validate()Methods inherited from class org.elasticsearch.xpack.core.security.action.GrantRequest
getGrant, writeToMethods 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
-
GrantApiKeyRequest
public GrantApiKeyRequest()
-
-
Method Details
-
getRefreshPolicy
-
setRefreshPolicy
-
getApiKeyRequest
-
setApiKeyRequest
-
validate
- Overrides:
validatein classGrantRequest
-