Interface INetworkAuthorizer

All Superinterfaces:
AuthCache.BulkLoader<RoleResource,DCPermissions>
All Known Implementing Classes:
AllowAllNetworkAuthorizer, CassandraNetworkAuthorizer

public interface INetworkAuthorizer extends AuthCache.BulkLoader<RoleResource,DCPermissions>
  • 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

      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 permissions 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.