Module org.elasticsearch.security
Record Class QueryableBuiltInRoles
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.support.QueryableBuiltInRoles
public record QueryableBuiltInRoles(Map<String,String> rolesDigest, Collection<RoleDescriptor> roleDescriptors)
extends Record
A class that holds the built-in roles and their hash digests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA listener that is notified when the built-in roles change.static interfaceA provider that provides the built-in roles and can notify subscribed listeners when the built-in roles change. -
Constructor Summary
ConstructorsConstructorDescriptionQueryableBuiltInRoles(Map<String, String> rolesDigest, Collection<RoleDescriptor> roleDescriptors) Creates an instance of aQueryableBuiltInRolesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theroleDescriptorsrecord component.Returns the value of therolesDigestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryableBuiltInRoles
public QueryableBuiltInRoles(Map<String, String> rolesDigest, Collection<RoleDescriptor> roleDescriptors) Creates an instance of aQueryableBuiltInRolesrecord class.- Parameters:
rolesDigest- the value for therolesDigestrecord componentroleDescriptors- the value for theroleDescriptorsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
rolesDigest
Returns the value of therolesDigestrecord component.- Returns:
- the value of the
rolesDigestrecord component
-
roleDescriptors
Returns the value of theroleDescriptorsrecord component.- Returns:
- the value of the
roleDescriptorsrecord component
-