Package org.apache.cassandra.auth
Interface INetworkAuthorizer
- All Superinterfaces:
AuthCache.BulkLoader<RoleResource,DCPermissions>
- All Known Implementing Classes:
AllowAllNetworkAuthorizer,CassandraNetworkAuthorizer
-
Method Summary
Modifier and TypeMethodDescriptionauthorize(RoleResource role) Returns the dc permissions associated with the given rolevoiddrop(RoleResource role) Called when a role is deleted, so any corresponding network permissions data can also be cleaned updefault booleanWhether or not the authorizer will attempt authorization.voidsetRoleDatacenters(RoleResource role, DCPermissions permissions) voidsetup()Setup is called once upon system startup to initialize the INetworkAuthorizer.voidValidates configuration of IAuthorizer implementation (if configurable).Methods inherited from interface org.apache.cassandra.auth.AuthCache.BulkLoader
bulkLoader
-
Method Details
-
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
Returns the dc permissions associated with the given role -
setRoleDatacenters
-
drop
Called when a role is deleted, so any corresponding network permissions data can also be cleaned up -
validateConfiguration
Validates configuration of IAuthorizer implementation (if configurable).- Throws:
ConfigurationException- when there is a configuration error.
-