org.apache.cassandra.auth
Class SimpleAuthority

java.lang.Object
  extended by org.apache.cassandra.auth.SimpleAuthority
All Implemented Interfaces:
IAuthority

public class SimpleAuthority
extends java.lang.Object
implements IAuthority


Field Summary
static java.lang.String ACCESS_FILENAME_PROPERTY
           
static java.lang.String KEYSPACES_WRITE_PROPERTY
           
 
Constructor Summary
SimpleAuthority()
           
 
Method Summary
 java.util.EnumSet<Permission> authorize(AuthenticatedUser user, java.util.List<java.lang.Object> resource)
           
 void validateConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_FILENAME_PROPERTY

public static final java.lang.String ACCESS_FILENAME_PROPERTY
See Also:
Constant Field Values

KEYSPACES_WRITE_PROPERTY

public static final java.lang.String KEYSPACES_WRITE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

SimpleAuthority

public SimpleAuthority()
Method Detail

authorize

public java.util.EnumSet<Permission> authorize(AuthenticatedUser user,
                                               java.util.List<java.lang.Object> resource)
Specified by:
authorize in interface IAuthority
Parameters:
user - An authenticated user from a previous call to IAuthenticator.authenticate.
resource - A List of Objects containing Strings and byte[]s: represents a resource in the hierarchy described in the Javadocs.
Returns:
An AccessLevel representing the permissions for the user and resource: should never return null.

validateConfiguration

public void validateConfiguration()
                           throws ConfigurationException
Specified by:
validateConfiguration in interface IAuthority
Throws:
ConfigurationException


Copyright © 2010 The Apache Software Foundation