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