org.apache.cassandra.auth
Interface IAuthority

All Known Implementing Classes:
AllowAllAuthority, SimpleAuthority

public interface IAuthority


Method Summary
 java.util.EnumSet<Permission> authorize(AuthenticatedUser user, java.lang.String keyspace)
           
 void validateConfiguration()
           
 

Method Detail

authorize

java.util.EnumSet<Permission> authorize(AuthenticatedUser user,
                                        java.lang.String keyspace)
Parameters:
user - An authenticated user from a previous call to IAuthenticator.authenticate.
keyspace - The resource to calculate permissions for.
Returns:
An AccessLevel representing the permissions for the user and resource: should never return null.

validateConfiguration

void validateConfiguration()
                           throws ConfigurationException
Throws:
ConfigurationException


Copyright © 2010 The Apache Software Foundation