Package org.apache.cassandra.auth
Class AllowAllNetworkAuthorizer
java.lang.Object
org.apache.cassandra.auth.AllowAllNetworkAuthorizer
- All Implemented Interfaces:
AuthCache.BulkLoader<RoleResource,,DCPermissions> INetworkAuthorizer
-
Constructor Summary
Constructors -
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 upbooleanWhether 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.auth.AuthCache.BulkLoader
bulkLoader
-
Constructor Details
-
AllowAllNetworkAuthorizer
public AllowAllNetworkAuthorizer()
-
-
Method Details
-
setup
public void setup()Description copied from interface:INetworkAuthorizerSetup is called once upon system startup to initialize the INetworkAuthorizer. For example, use this method to create any required keyspaces/column families.- Specified by:
setupin interfaceINetworkAuthorizer
-
authorize
Description copied from interface:INetworkAuthorizerReturns the dc permissions associated with the given role- Specified by:
authorizein interfaceINetworkAuthorizer
-
setRoleDatacenters
- Specified by:
setRoleDatacentersin interfaceINetworkAuthorizer
-
drop
Description copied from interface:INetworkAuthorizerCalled when a role is deleted, so any corresponding network permissions data can also be cleaned up- Specified by:
dropin interfaceINetworkAuthorizer
-
validateConfiguration
Description copied from interface:INetworkAuthorizerValidates configuration of IAuthorizer implementation (if configurable).- Specified by:
validateConfigurationin interfaceINetworkAuthorizer- Throws:
ConfigurationException- when there is a configuration error.
-
requireAuthorization
public boolean requireAuthorization()Description copied from interface:INetworkAuthorizerWhether or not the authorizer will attempt authorization. If false the authorizer will not be called for authorization of resources.- Specified by:
requireAuthorizationin interfaceINetworkAuthorizer
-