Class WhoAmIResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- com.floragunn.searchguard.action.whoami.WhoAmIResponse
-
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.core.RefCounted,org.elasticsearch.xcontent.ToXContent
public class WhoAmIResponse extends org.elasticsearch.action.ActionResponse implements org.elasticsearch.xcontent.ToXContent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
org.elasticsearch.action.ActionResponse.Empty
-
-
Constructor Summary
Constructors Constructor Description WhoAmIResponse()WhoAmIResponse(String dn, boolean isAdmin, boolean isAuthenticated, boolean isNodeCertificateRequest)WhoAmIResponse(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDn()booleanisAdmin()booleanisAuthenticated()booleanisNodeCertificateRequest()StringtoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)-
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
-
-
-
-
Constructor Detail
-
WhoAmIResponse
public WhoAmIResponse(String dn, boolean isAdmin, boolean isAuthenticated, boolean isNodeCertificateRequest)
-
WhoAmIResponse
public WhoAmIResponse()
-
WhoAmIResponse
public WhoAmIResponse(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
getDn
public String getDn()
-
isAdmin
public boolean isAdmin()
-
isAuthenticated
public boolean isAuthenticated()
-
isNodeCertificateRequest
public boolean isNodeCertificateRequest()
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
-