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()
INetworkAuthorizer
setup
in interface INetworkAuthorizer
public DCPermissions authorize(RoleResource role)
INetworkAuthorizer
authorize
in interface INetworkAuthorizer
public void setRoleDatacenters(RoleResource role, DCPermissions permissions)
setRoleDatacenters
in interface INetworkAuthorizer
public void drop(RoleResource role)
INetworkAuthorizer
drop
in interface INetworkAuthorizer
public void validateConfiguration() throws ConfigurationException
INetworkAuthorizer
validateConfiguration
in interface INetworkAuthorizer
ConfigurationException
- when there is a configuration error.public boolean requireAuthorization()
INetworkAuthorizer
requireAuthorization
in interface INetworkAuthorizer
Copyright © 2009-2022 The Apache Software Foundation