public final class DelegatingConfigurableAuthorizer extends Object implements JmxAuthorizer
Authorizer that delegates to another. Used for initial boot to allow
an instance of this class to be provided to the ModelController but then have the
functional implementation swapped out when boot proceeds to the point where the user-configured
authorizer is available.Authorizer.AuthorizerDescription| Constructor and Description |
|---|
DelegatingConfigurableAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationResult |
authorize(org.wildfly.security.auth.server.SecurityIdentity identity,
Environment callEnvironment,
Action action,
TargetAttribute target)
Authorize a management operation affecting an individual attribute.
|
AuthorizationResult |
authorize(org.wildfly.security.auth.server.SecurityIdentity identity,
Environment callEnvironment,
Action action,
TargetResource target)
Authorize a management operation affecting an entire resource.
|
AuthorizationResult |
authorizeJmxOperation(org.wildfly.security.auth.server.SecurityIdentity identity,
Environment callEnvironment,
JmxAction action,
JmxTarget target)
Authorize a JMX operation.
|
Set<String> |
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.
|
Authorizer.AuthorizerDescription |
getDescription()
Gets a description of the characteristics of this authorizer
|
WritableAuthorizerConfiguration |
getWritableAuthorizerConfiguration() |
boolean |
isNonFacadeMBeansSensitive()
Gets whether JMX calls to non-facade mbeans (i.e.
|
void |
setDelegate(Authorizer delegate) |
void |
setNonFacadeMBeansSensitive(boolean sensitive)
Sets whether JMX calls to non-facade mbeans (i.e.
|
void |
shutdown() |
public WritableAuthorizerConfiguration getWritableAuthorizerConfiguration()
public void setDelegate(Authorizer delegate)
public Set<String> getCallerRoles(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, Set<String> runAsRoles)
AuthorizergetCallerRoles in interface Authorizeridentity - the caller identity. 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.public Authorizer.AuthorizerDescription getDescription()
AuthorizergetDescription in interface Authorizernullpublic AuthorizationResult authorize(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, Action action, TargetAttribute target)
Authorizerauthorize in interface Authorizeridentity - the caller identity. 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(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, Action action, TargetResource target)
Authorizerauthorize in interface Authorizeridentity - the identity. 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(org.wildfly.security.auth.server.SecurityIdentity identity, Environment callEnvironment, JmxAction action, JmxTarget target)
AuthorizerauthorizeJmxOperation in interface Authorizeridentity - the caller identity. Cannot be nullcallEnvironment - the call environment. Cannot be nullaction - the action being authorized. Cannot be nulltarget - the target of the action. Cannot be nullnullpublic void setNonFacadeMBeansSensitive(boolean sensitive)
JmxAuthorizerAuthorizer#authorizeJmxOperation(org.jboss.as.controller.access.Caller, org.jboss.as.controller.access.Environment,
org.jboss.as.controller.access.JmxAction, org.jboss.as.controller.access.JmxTarget)) should be treated as 'sensitive'.setNonFacadeMBeansSensitive in interface JmxAuthorizersensitive - true if non-facade mbean calls are sensitive; false otherwisepublic void shutdown()
public boolean isNonFacadeMBeansSensitive()
JmxAuthorizerAuthorizer#authorizeJmxOperation(org.jboss.as.controller.access.Caller, org.jboss.as.controller.access.Environment,
org.jboss.as.controller.access.JmxAction, org.jboss.as.controller.access.JmxTarget)) should be treated as 'sensitive'.isNonFacadeMBeansSensitive in interface JmxAuthorizertrue if non-facade mbean calls are sensitive; false otherwiseCopyright © 2022 JBoss by Red Hat. All rights reserved.