Class AuthTokenPrivilegeBase
- java.lang.Object
-
- com.floragunn.searchguard.authtoken.AuthTokenPrivilegeBase
-
- All Implemented Interfaces:
Serializable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class AuthTokenPrivilegeBase extends Object implements org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.common.io.stream.Writeable, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthTokenPrivilegeBase(Collection<String> backendRoles, Collection<String> searchGuardRoles, Map<String,Object> attributes, ConfigVersionSet configVersions)AuthTokenPrivilegeBase(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,Object>getAttributes()List<String>getBackendRoles()ConfigSnapshotgetConfigSnapshot()ConfigVersionSetgetConfigVersions()List<String>getSearchGuardRoles()inthashCode()static AuthTokenPrivilegeBaseparse(com.fasterxml.jackson.databind.JsonNode jsonNode)ConfigSnapshotpeekConfigSnapshot()StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
-
-
Constructor Detail
-
AuthTokenPrivilegeBase
public AuthTokenPrivilegeBase(Collection<String> backendRoles, Collection<String> searchGuardRoles, Map<String,Object> attributes, ConfigVersionSet configVersions)
-
AuthTokenPrivilegeBase
public AuthTokenPrivilegeBase(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
getConfigVersions
public ConfigVersionSet getConfigVersions()
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
parse
public static AuthTokenPrivilegeBase parse(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
peekConfigSnapshot
public ConfigSnapshot peekConfigSnapshot()
-
getConfigSnapshot
public ConfigSnapshot getConfigSnapshot()
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
-