Package org.jboss.as.controller.access
Interface AuthorizerConfiguration.RoleMapping
-
- Enclosing interface:
- AuthorizerConfiguration
public static interface AuthorizerConfiguration.RoleMappingEncapsulates the notion of a role to which a caller can be mapped.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()The name of the role.booleanincludeAllAuthedUsers()Get whether all authenticated users should be included in this role provided they do not match on the excludes of the role.AuthorizerConfiguration.MappingPrincipalisExcluded(org.wildfly.security.auth.server.SecurityIdentity identity)Gets whether the caller matches the role mapping's exclusion rules.AuthorizerConfiguration.MappingPrincipalisIncluded(org.wildfly.security.auth.server.SecurityIdentity identity)Gets whether the caller matches the role mapping's inclusion rules.
-
-
-
Method Detail
-
getName
String getName()
The name of the role.- Returns:
- the name. Will not be
null
-
includeAllAuthedUsers
boolean includeAllAuthedUsers()
Get whether all authenticated users should be included in this role provided they do not match on the excludes of the role.- Returns:
- true if all authenticated users should be granted this role.
-
isIncluded
AuthorizerConfiguration.MappingPrincipal isIncluded(org.wildfly.security.auth.server.SecurityIdentity identity)
Gets whether the caller matches the role mapping's inclusion rules.- Parameters:
identity- the caller identity- Returns:
- the principal that results in the caller satisfying the role mapping's inclusion rules,
or
nullif the caller does not satisfy them
-
isExcluded
AuthorizerConfiguration.MappingPrincipal isExcluded(org.wildfly.security.auth.server.SecurityIdentity identity)
Gets whether the caller matches the role mapping's exclusion rules.- Parameters:
identity- the caller identity- Returns:
- the principal that results in the caller satisfying the role mapping's exclusion rules,
or
nullif the caller does not satisfy them
-
-