@InterfaceAudience.Private public class AuthResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthResult.Params |
Modifier and Type | Field and Description |
---|---|
private Permission.Action |
action |
private boolean |
allowed |
private Map<byte[],? extends Collection<?>> |
families |
private byte[] |
family |
private String |
namespace |
private AuthResult.Params |
params |
private byte[] |
qualifier |
private String |
reason |
private String |
request |
private TableName |
table |
private User |
user |
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() |
private static String |
toFamiliesString(Map<byte[],? extends Collection<?>> families,
byte[] family,
byte[] qual) |
String |
toFamilyString() |
String |
toString() |
private boolean allowed
private final String namespace
private final TableName table
private final Permission.Action action
private final String request
private String reason
private final User user
private AuthResult.Params params
private final byte[] family
private final byte[] qualifier
private final 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)
private static String toFamiliesString(Map<byte[],? extends Collection<?>> families, byte[] family, byte[] qual)
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.