Class ExpressionRoleMapping

java.lang.Object
org.elasticsearch.client.security.ExpressionRoleMapping

public final class ExpressionRoleMapping extends Object
A representation of a single role-mapping.
See Also:
RoleMapperExpression, RoleMapperExpressionParser
  • Constructor Details

    • ExpressionRoleMapping

      public ExpressionRoleMapping(String name, RoleMapperExpression expr, List<String> roles, List<TemplateRoleName> templates, Map<String,​Object> metadata, boolean enabled)
      Constructor for role mapping
      Parameters:
      name - role mapping name
      expr - RoleMapperExpression Expression used for role mapping
      roles - list of roles to be associated with the user
      metadata - metadata that helps to identify which roles are assigned to the user
      enabled - a flag when true signifies the role mapping is active
  • Method Details