@InterfaceAudience.Private public class AuthResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthResult.Params |
Constructor and Description |
---|
AuthResult(boolean allowed,
String request,
String reason,
User user,
Permission.Action action,
String namespace) |
AuthResult(boolean allowed,
String request,
String reason,
User user,
Permission.Action action,
TableName table,
byte[] family,
byte[] qualifier) |
AuthResult(boolean allowed,
String request,
String reason,
User user,
Permission.Action action,
TableName table,
Map<byte[],? extends Collection<?>> families) |
public AuthResult(boolean allowed, String request, String reason, User user, Permission.Action action, TableName table, byte[] family, byte[] qualifier)
public AuthResult(boolean allowed, String request, String reason, User user, Permission.Action action, TableName table, Map<byte[],? extends Collection<?>> families)
public AuthResult(boolean allowed, String request, String reason, User user, Permission.Action action, String namespace)
public boolean isAllowed()
public User getUser()
public String getReason()
public TableName getTableName()
public byte[] getFamily()
public byte[] getQualifier()
public Permission.Action getAction()
public String getRequest()
public AuthResult.Params getParams()
public void setAllowed(boolean allowed)
public void setReason(String reason)
public String toContextString()
public static AuthResult allow(String request, String reason, User user, Permission.Action action, String namespace)
public static AuthResult allow(String request, String reason, User user, Permission.Action action, TableName table, byte[] family, byte[] qualifier)
public static AuthResult allow(String request, String reason, User user, Permission.Action action, TableName table, Map<byte[],? extends Collection<?>> families)
public static AuthResult deny(String request, String reason, User user, Permission.Action action, String namespace)
public static AuthResult deny(String request, String reason, User user, Permission.Action action, TableName table, byte[] family, byte[] qualifier)
public static AuthResult deny(String request, String reason, User user, Permission.Action action, TableName table, Map<byte[],? extends Collection<?>> families)
public String toFamilyString()
Copyright © 2007–2019 Cloudera. All rights reserved.