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 |
canLogin()
Check whether this user has login privileges.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
java.util.Set<Permission> |
getPermissions(IResource resource) |
RoleResource |
getPrimaryRole() |
java.util.Set<Role> |
getRoleDetails()
Get the detailed info on roles granted to the user via IRoleManager
|
java.util.Set<RoleResource> |
getRoles()
Get the roles that have been granted to the user via the IRoleManager
|
int |
hashCode() |
boolean |
hasLocalAccess()
Verify that there is not DC level restriction on this user accessing this node.
|
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 AlterSchemaStatement#createdResources()
|
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<Role> getRoleDetails()
public java.util.Set<Permission> getPermissions(IResource resource)
public boolean canLogin()
public boolean hasLocalAccess()
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 © 2009-2021 The Apache Software Foundation