Module org.elasticsearch.xcore
Class CrossClusterAccessSubjectInfo
java.lang.Object
org.elasticsearch.xpack.core.security.authc.CrossClusterAccessSubjectInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCrossClusterAccessSubjectInfo(Authentication authentication, RoleDescriptorsIntersection roleDescriptorsIntersection) -
Method Summary
-
Field Details
-
CROSS_CLUSTER_ACCESS_SUBJECT_INFO_HEADER_KEY
- See Also:
-
-
Constructor Details
-
CrossClusterAccessSubjectInfo
public CrossClusterAccessSubjectInfo(Authentication authentication, RoleDescriptorsIntersection roleDescriptorsIntersection) throws IOException - Throws:
IOException
-
-
Method Details
-
writeToContext
- Throws:
IOException
-
readFromContext
- Throws:
IOException
-
getAuthentication
-
cleanAndValidate
-
getRoleDescriptorsBytesList
-
equals
-
hashCode
public int hashCode() -
toString
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
copyWithCrossClusterAccessEntries
public Map<String,Object> copyWithCrossClusterAccessEntries(Map<String, Object> authenticationMetadata) Returns a copy of the passed-in metadata map, with the relevant cross cluster access fields included. Does not modify the original map.
-