org.apache.cassandra.auth
Class AuthenticatedUser

java.lang.Object
  extended by org.apache.cassandra.auth.AuthenticatedUser

public class AuthenticatedUser
extends java.lang.Object

Returned from IAuthenticator#authenticate(), represents an authenticated user everywhere internally.


Field Summary
static AuthenticatedUser ANONYMOUS_USER
           
static java.lang.String ANONYMOUS_USERNAME
           
 
Constructor Summary
AuthenticatedUser(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 boolean isAnonymous()
          If IAuthenticator doesn't require authentication, this method may return true.
 boolean isSuper()
          Checks the user's superuser status.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANONYMOUS_USERNAME

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

ANONYMOUS_USER

public static final AuthenticatedUser ANONYMOUS_USER
Constructor Detail

AuthenticatedUser

public AuthenticatedUser(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

isSuper

public boolean isSuper()
Checks the user's superuser status. Only a superuser is allowed to perform CREATE USER and DROP USER queries. Im most cased, though not necessarily, a superuser will have Permission.ALL on every resource (depends on IAuthorizer implementation).


isAnonymous

public boolean isAnonymous()
If IAuthenticator doesn't require authentication, this method may return true.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 The Apache Software Foundation