Class RoleReference.NamedRoleReference

java.lang.Object
org.elasticsearch.xpack.core.security.authz.store.RoleReference.NamedRoleReference
All Implemented Interfaces:
RoleReference
Enclosing interface:
RoleReference

public static final class RoleReference.NamedRoleReference extends Object implements RoleReference
Referencing a collection of role descriptors by their names
  • Constructor Details

    • NamedRoleReference

      public NamedRoleReference(String[] roleNames)
  • Method Details

    • getRoleNames

      public String[] getRoleNames()
    • id

      public RoleKey id()
      Description copied from interface: RoleReference
      Unique ID of the instance. Instances that have equal ID means they are equivalent in terms of authorization. It is currently used as cache key for role caching purpose. Callers can use this value to determine whether it should skip resolving the role descriptors and subsequently building the role.
      Specified by:
      id in interface RoleReference
    • resolve

      public void resolve(RoleReferenceResolver resolver, ActionListener<RolesRetrievalResult> listener)
      Description copied from interface: RoleReference
      Resolve concrete role descriptors for the roleReference.
      Specified by:
      resolve in interface RoleReference