Module org.elasticsearch.xcore
Class CrossClusterAccessSubjectInfo.RoleDescriptorsBytes
java.lang.Object
org.elasticsearch.xpack.core.security.authc.CrossClusterAccessSubjectInfo.RoleDescriptorsBytes
- All Implemented Interfaces:
Writeable
- Enclosing class:
CrossClusterAccessSubjectInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoleDescriptorsBytes(BytesReference rawBytes) RoleDescriptorsBytes(StreamInput streamInput) -
Method Summary
Modifier and TypeMethodDescriptiondigest()Compute the sha256 digest of the bytesbooleanfromRoleDescriptors(Set<RoleDescriptor> roleDescriptors) inthashCode()toString()voidwriteTo(StreamOutput out)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RoleDescriptorsBytes
-
RoleDescriptorsBytes
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
digest
Compute the sha256 digest of the bytes- Returns:
- A hexadecimal representation of the sha256 digest
-
fromRoleDescriptors
public static CrossClusterAccessSubjectInfo.RoleDescriptorsBytes fromRoleDescriptors(Set<RoleDescriptor> roleDescriptors) throws IOException - Throws:
IOException
-
toRoleDescriptors
-
equals
-
hashCode
public int hashCode() -
toString
-