public class AuthenticatedUser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AuthenticatedUser |
ANONYMOUS_USER |
static java.lang.String |
ANONYMOUS_USERNAME |
static AuthenticatedUser |
SYSTEM_USER |
static java.lang.String |
SYSTEM_USERNAME |
Constructor and Description |
---|
AuthenticatedUser(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
java.util.Set<Permission> |
getPermissions(IResource resource) |
RoleResource |
getPrimaryRole() |
java.util.Set<RoleResource> |
getRoles()
Get the roles that have been granted to the user via the IRoleManager
|
int |
hashCode() |
boolean |
isAnonymous()
If IAuthenticator doesn't require authentication, this method may return true.
|
boolean |
isSuper()
Checks the user's superuser status.
|
boolean |
isSystem()
Some internal operations are performed on behalf of Cassandra itself, in those cases
the system user should be used where an identity is required
see CreateRoleStatement#execute() and overrides of SchemaAlteringStatement#grantPermissionsToCreator()
|
java.lang.String |
toString() |
public static final java.lang.String SYSTEM_USERNAME
public static final AuthenticatedUser SYSTEM_USER
public static final java.lang.String ANONYMOUS_USERNAME
public static final AuthenticatedUser ANONYMOUS_USER
public java.lang.String getName()
public RoleResource getPrimaryRole()
public boolean isSuper()
public boolean isAnonymous()
public boolean isSystem()
public java.util.Set<RoleResource> getRoles()
public java.util.Set<Permission> getPermissions(IResource resource)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2017 The Apache Software Foundation