public class AllowAllNetworkAuthorizer extends java.lang.Object implements INetworkAuthorizer
| Constructor and Description |
|---|
AllowAllNetworkAuthorizer() |
| Modifier and Type | Method and Description |
|---|---|
DCPermissions |
authorize(RoleResource role)
Returns the dc permissions associated with the given role
|
void |
drop(RoleResource role)
Called when a role is deleted, so any corresponding network auth
data can also be cleaned up
|
boolean |
requireAuthorization()
Whether or not the authorizer will attempt authorization.
|
void |
setRoleDatacenters(RoleResource role,
DCPermissions permissions) |
void |
setup()
Setup is called once upon system startup to initialize the INetworkAuthorizer.
|
void |
validateConfiguration()
Validates configuration of IAuthorizer implementation (if configurable).
|
public void setup()
INetworkAuthorizersetup in interface INetworkAuthorizerpublic DCPermissions authorize(RoleResource role)
INetworkAuthorizerauthorize in interface INetworkAuthorizerpublic void setRoleDatacenters(RoleResource role, DCPermissions permissions)
setRoleDatacenters in interface INetworkAuthorizerpublic void drop(RoleResource role)
INetworkAuthorizerdrop in interface INetworkAuthorizerpublic void validateConfiguration()
throws ConfigurationException
INetworkAuthorizervalidateConfiguration in interface INetworkAuthorizerConfigurationException - when there is a configuration error.public boolean requireAuthorization()
INetworkAuthorizerrequireAuthorization in interface INetworkAuthorizerCopyright © 2009-2022 The Apache Software Foundation