public class CassandraNetworkAuthorizer extends java.lang.Object implements INetworkAuthorizer
Constructor and Description |
---|
CassandraNetworkAuthorizer() |
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
|
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requireAuthorization
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.Copyright © 2009-2022 The Apache Software Foundation