Class StandardRBACAuthorizer
java.lang.Object
org.jboss.as.controller.access.permission.ManagementPermissionAuthorizer
org.jboss.as.controller.access.rbac.StandardRBACAuthorizer
- All Implemented Interfaces:
Authorizer
Standard
Authorizer implementation that uses a provided
RoleMapper to construct a DefaultPermissionFactory, with that permission factory
used for the permissions used by the superclass implementation.
Also supports the allowed roles being specified via a roles operation-header in the top level operation
whose value is the name of a role or a DMR list of strings each of which is the name of a role.
This operation-header based approach is only secure to the extent the clients using it are secure. To use this
approach the client must authenticate, and the underlying.
So, by adding the roles operation-header to the request the client can only reduce its privileges,
not increase them.
- Author:
- Brian Stansberry (c) 2013 Red Hat Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.access.Authorizer
Authorizer.AuthorizerDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StandardRBACAuthorizercreate(AuthorizerConfiguration configuration, RoleMapper roleMapper) getCallerRoles(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, Set<String> runAsRoles) Gets the set of roles the caller can run as taking into account any requested 'run as' roles.Gets a description of the characteristics of this authorizervoidshutdown()Methods inherited from class org.jboss.as.controller.access.permission.ManagementPermissionAuthorizer
authorize, authorize, authorizeJmxOperation
-
Field Details
-
AUTHORIZER_DESCRIPTION
-
-
Method Details
-
create
public static StandardRBACAuthorizer create(AuthorizerConfiguration configuration, RoleMapper roleMapper) -
getCallerRoles
public Set<String> getCallerRoles(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, Set<String> runAsRoles) Description copied from interface:AuthorizerGets the set of roles the caller can run as taking into account any requested 'run as' roles.- Specified by:
getCallerRolesin interfaceAuthorizer- Overrides:
getCallerRolesin classManagementPermissionAuthorizer- Parameters:
identity- the caller identity. Cannot benullcallEnvironment- the call environment. Cannot benullrunAsRoles- any requested 'run as' roles. May benull- Returns:
- The set of roles assigned to the caller; an empty set will be returned if no roles are assigned or
nullwill be returned if the access control provider does not support role mapping.
-
getDescription
Description copied from interface:AuthorizerGets a description of the characteristics of this authorizer- Specified by:
getDescriptionin interfaceAuthorizer- Overrides:
getDescriptionin classManagementPermissionAuthorizer- Returns:
- the description. Cannot be
null
-
shutdown
public void shutdown()
-