Module org.elasticsearch.xcore
Class GetServiceAccountCredentialsNodesResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.nodes.BaseNodesResponse<GetServiceAccountCredentialsNodesResponse.Node>
org.elasticsearch.xpack.core.security.action.service.GetServiceAccountCredentialsNodesResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
public class GetServiceAccountCredentialsNodesResponse
extends BaseNodesResponse<GetServiceAccountCredentialsNodesResponse.Node>
Unlike index-backed service account tokens, file-backed tokens are local to the node.
This response is to fetch information about them from each node. Note the class is
more generically named for the possible future expansion to cover other types of credentials
that are local to the node.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested 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
ConstructorsConstructorDescriptionGetServiceAccountCredentialsNodesResponse(ClusterName clusterName, List<GetServiceAccountCredentialsNodesResponse.Node> nodes, List<FailedNodeException> failures) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethods inherited from class org.elasticsearch.action.support.nodes.BaseNodesResponse
failures, getClusterName, getNodes, getNodesMap, hasFailures, writeToMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
GetServiceAccountCredentialsNodesResponse
public GetServiceAccountCredentialsNodesResponse(ClusterName clusterName, List<GetServiceAccountCredentialsNodesResponse.Node> nodes, List<FailedNodeException> failures) -
GetServiceAccountCredentialsNodesResponse
- Throws:
IOException
-
-
Method Details
-
readNodesFrom
protected List<GetServiceAccountCredentialsNodesResponse.Node> readNodesFrom(StreamInput in) throws IOException - Specified by:
readNodesFromin classBaseNodesResponse<GetServiceAccountCredentialsNodesResponse.Node>- Throws:
IOException
-
writeNodesTo
protected void writeNodesTo(StreamOutput out, List<GetServiceAccountCredentialsNodesResponse.Node> nodes) throws IOException - Specified by:
writeNodesToin classBaseNodesResponse<GetServiceAccountCredentialsNodesResponse.Node>- Throws:
IOException
-
getFileTokenInfos
-