Package org.apache.cassandra.auth
Interface INetworkAuthorizer
-
- All Known Implementing Classes:
AllowAllNetworkAuthorizer
,CassandraNetworkAuthorizer
public interface INetworkAuthorizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DCPermissions
authorize(RoleResource role)
Returns the dc permissions associated with the given rolevoid
drop(RoleResource role)
Called when a role is deleted, so any corresponding network auth data can also be cleaned updefault 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).
-
-
-
Method Detail
-
requireAuthorization
default boolean requireAuthorization()
Whether or not the authorizer will attempt authorization. If false the authorizer will not be called for authorization of resources.
-
setup
void setup()
Setup is called once upon system startup to initialize the INetworkAuthorizer. For example, use this method to create any required keyspaces/column families.
-
authorize
DCPermissions authorize(RoleResource role)
Returns the dc permissions associated with the given role
-
setRoleDatacenters
void setRoleDatacenters(RoleResource role, DCPermissions permissions)
-
drop
void drop(RoleResource role)
Called when a role is deleted, so any corresponding network auth data can also be cleaned up
-
validateConfiguration
void validateConfiguration() throws ConfigurationException
Validates configuration of IAuthorizer implementation (if configurable).- Throws:
ConfigurationException
- when there is a configuration error.
-
-