Class ExpressionRoleMapping
java.lang.Object
org.elasticsearch.client.security.ExpressionRoleMapping
A representation of a single role-mapping.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionExpressionRoleMapping
(String name, RoleMapperExpression expr, List<String> roles, List<TemplateRoleName> templates, Map<String, Object> metadata, boolean enabled) Constructor for role mapping -
Method Summary
-
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 nameexpr
-RoleMapperExpression
Expression used for role mappingroles
- list of roles to be associated with the usermetadata
- metadata that helps to identify which roles are assigned to the userenabled
- a flag whentrue
signifies the role mapping is active
-
-
Method Details