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, waitrequireAuthorizationpublic 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.Copyright © 2009-2020 The Apache Software Foundation