public class ManagementPermissionAuthorizer extends Object implements Authorizer
Authorizer.AuthorizerDescription| Constructor and Description |
|---|
ManagementPermissionAuthorizer(PermissionFactory permissionFactory) |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationResult |
authorize(Caller caller,
Environment callEnvironment,
Action action,
TargetAttribute target)
Authorize a management operation affecting an individual attribute.
|
AuthorizationResult |
authorize(Caller caller,
Environment callEnvironment,
Action action,
TargetResource target)
Authorize a management operation affecting an entire resource.
|
AuthorizationResult |
authorizeJmxOperation(Caller caller,
Environment callEnvironment,
JmxAction action,
JmxTarget target)
Authorize a JMX operation.
|
Set<String> |
getCallerRoles(Caller caller,
Environment callEnvironment,
Set<String> runAsRoles)
Gets the set of roles the caller can run as taking into account any requested 'run as' roles.
|
Authorizer.AuthorizerDescription |
getDescription()
Gets a description of the characteristics of this authorizer
|
public ManagementPermissionAuthorizer(PermissionFactory permissionFactory)
public Authorizer.AuthorizerDescription getDescription()
AuthorizergetDescription in interface Authorizernullpublic AuthorizationResult authorize(Caller caller, Environment callEnvironment, Action action, TargetAttribute target)
Authorizerauthorize in interface Authorizercaller - the caller. Cannot be nullcallEnvironment - the call environment. Cannot be nullaction - the action being authorized. Cannot be nulltarget - the target of the action. Cannot be nullnullpublic AuthorizationResult authorize(Caller caller, Environment callEnvironment, Action action, TargetResource target)
Authorizerauthorize in interface Authorizercaller - the caller. Cannot be nullcallEnvironment - the call environment. Cannot be nullaction - the action being authorized. Cannot be nulltarget - the target of the action. Cannot be nullnullpublic AuthorizationResult authorizeJmxOperation(Caller caller, Environment callEnvironment, JmxAction action, JmxTarget target)
AuthorizerauthorizeJmxOperation in interface Authorizercaller - the caller. Cannot be nullcallEnvironment - the call environment. Cannot be nullaction - the action being authorized. Cannot be nulltarget - the target of the action. Cannot be nullnullpublic Set<String> getCallerRoles(Caller caller, Environment callEnvironment, Set<String> runAsRoles)
AuthorizergetCallerRoles in interface Authorizercaller - the caller. Cannot be nullcallEnvironment - the call environment. Cannot be nullrunAsRoles - any requested 'run as' roles. May be nullnull
will be returned if the access control provider does not support role mapping.Copyright © 2015 JBoss by Red Hat. All rights reserved.