Class RoleReference.ServiceAccountRoleReference

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

public static final class RoleReference.ServiceAccountRoleReference extends Object implements RoleReference
Referencing role descriptors by the service account principal
  • Constructor Details

    • ServiceAccountRoleReference

      public ServiceAccountRoleReference(String principal)
  • Method Details

    • getPrincipal

      public String getPrincipal()
    • 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