public class DefaultPermissionFactory extends Object implements PermissionFactory, AuthorizerConfiguration.ScopedRoleListener
PermissionFactory implementation that supports
the WildFly default role-based access control permission scheme.| Constructor and Description |
|---|
DefaultPermissionFactory(RoleMapper roleMapper,
AuthorizerConfiguration authorizerConfiguration)
Creates a new
DefaultPermissionFactory |
| Modifier and Type | Method and Description |
|---|---|
PermissionCollection |
getRequiredPermissions(Action action,
TargetAttribute target) |
PermissionCollection |
getRequiredPermissions(Action action,
TargetResource target) |
PermissionCollection |
getRequiredPermissions(JmxAction action,
JmxTarget target) |
PermissionCollection |
getUserPermissions(Caller caller,
Environment callEnvironment,
Action action,
TargetAttribute target) |
PermissionCollection |
getUserPermissions(Caller caller,
Environment callEnvironment,
Action action,
TargetResource target) |
PermissionCollection |
getUserPermissions(Caller caller,
Environment callEnvironment,
JmxAction action,
JmxTarget target) |
void |
scopedRoleAdded(AuthorizerConfiguration.ScopedRole added)
Notification that a scoped role is being added.
|
void |
scopedRoleRemoved(AuthorizerConfiguration.ScopedRole removed)
Notification that a scoped role has been removed.
|
public DefaultPermissionFactory(RoleMapper roleMapper, AuthorizerConfiguration authorizerConfiguration)
DefaultPermissionFactoryroleMapper - the role mapper. Cannot be nullauthorizerConfiguration - the configuration for the Authorizer that
is using this factory. Cannot be nullpublic PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetAttribute target)
getUserPermissions in interface PermissionFactorypublic PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, Action action, TargetResource target)
getUserPermissions in interface PermissionFactorypublic PermissionCollection getUserPermissions(Caller caller, Environment callEnvironment, JmxAction action, JmxTarget target)
getUserPermissions in interface PermissionFactorypublic PermissionCollection getRequiredPermissions(Action action, TargetAttribute target)
getRequiredPermissions in interface PermissionFactorypublic PermissionCollection getRequiredPermissions(Action action, TargetResource target)
getRequiredPermissions in interface PermissionFactorypublic PermissionCollection getRequiredPermissions(JmxAction action, JmxTarget target)
getRequiredPermissions in interface PermissionFactorypublic void scopedRoleAdded(AuthorizerConfiguration.ScopedRole added)
AuthorizerConfiguration.ScopedRoleListenerAuthorizerConfiguration.scopedRoleAdded in interface AuthorizerConfiguration.ScopedRoleListeneradded - the scoped rolepublic void scopedRoleRemoved(AuthorizerConfiguration.ScopedRole removed)
AuthorizerConfiguration.ScopedRoleListenerAuthorizerConfiguration.scopedRoleRemoved in interface AuthorizerConfiguration.ScopedRoleListenerremoved - the scoped roleCopyright © 2017 JBoss by Red Hat. All rights reserved.