@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) |
Modifier and Type | Method and Description |
---|---|
static AuthResult |
allow(String request,
String reason,
User user,
Permission.Action action,
String namespace) |
static AuthResult |
allow(String request,
String reason,
User user,
Permission.Action action,
TableName table,
byte[] family,
byte[] qualifier) |
static AuthResult |
allow(String request,
String reason,
User user,
Permission.Action action,
TableName table,
Map<byte[],? extends Collection<?>> families) |
static AuthResult |
deny(String request,
String reason,
User user,
Permission.Action action,
String namespace) |
static AuthResult |
deny(String request,
String reason,
User user,
Permission.Action action,
TableName table,
byte[] family,
byte[] qualifier) |
static AuthResult |
deny(String request,
String reason,
User user,
Permission.Action action,
TableName table,
Map<byte[],? extends Collection<?>> families) |
Permission.Action |
getAction() |
byte[] |
getFamily() |
AuthResult.Params |
getParams() |
byte[] |
getQualifier() |
String |
getReason() |
String |
getRequest() |
TableName |
getTableName() |
User |
getUser() |
boolean |
isAllowed() |
void |
setAllowed(boolean allowed) |
void |
setReason(String reason) |
String |
toContextString() |
String |
toFamilyString() |
String |
toString() |
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 The Apache Software Foundation. All rights reserved.