public abstract class BitSetCheckedAuthorizationProvider extends HiveAuthorizationProviderBase
HiveAuthorizationProviderBase.HiveProxy
authenticator, hive_db, LOG
Constructor and Description |
---|
BitSetCheckedAuthorizationProvider() |
Modifier and Type | Method and Description |
---|---|
void |
authorize(Database db,
Privilege[] inputRequiredPriv,
Privilege[] outputRequiredPriv)
Authorization privileges against a database object.
|
void |
authorize(Partition part,
Privilege[] inputRequiredPriv,
Privilege[] outputRequiredPriv)
Authorization privileges against a hive partition object.
|
void |
authorize(Privilege[] inputRequiredPriv,
Privilege[] outputRequiredPriv)
Authorization user level privileges.
|
void |
authorize(Table table,
Partition part,
List<String> columns,
Privilege[] inputRequiredPriv,
Privilege[] outputRequiredPriv)
Authorization privileges against a list of columns.
|
void |
authorize(Table table,
Privilege[] inputRequiredPriv,
Privilege[] outputRequiredPriv)
Authorization privileges against a hive table object.
|
protected boolean |
authorizePrivileges(PrincipalPrivilegeSet privileges,
Privilege[] inputPriv,
boolean[] inputCheck,
Privilege[] outputPriv,
boolean[] outputCheck) |
protected boolean |
authorizeUserPriv(Privilege[] inputRequiredPriv,
boolean[] inputCheck,
Privilege[] outputRequiredPriv,
boolean[] outputCheck) |
getAuthenticator, getConf, setAuthenticator, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public void authorize(Privilege[] inputRequiredPriv, Privilege[] outputRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
inputRequiredPriv
- a list of privileges needed for inputs.outputRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Database db, Privilege[] inputRequiredPriv, Privilege[] outputRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
db
- databaseinputRequiredPriv
- a list of privileges needed for inputs.outputRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Table table, Privilege[] inputRequiredPriv, Privilege[] outputRequiredPriv) throws HiveException
HiveAuthorizationProvider
table
- table objectinputRequiredPriv
- a list of privileges needed for inputs.outputRequiredPriv
- a list of privileges needed for outputs.HiveException
public void authorize(Partition part, Privilege[] inputRequiredPriv, Privilege[] outputRequiredPriv) throws HiveException
HiveAuthorizationProvider
part
- partition objectinputRequiredPriv
- a list of privileges needed for inputs.outputRequiredPriv
- a list of privileges needed for outputs.HiveException
public void authorize(Table table, Partition part, List<String> columns, Privilege[] inputRequiredPriv, Privilege[] outputRequiredPriv) throws HiveException
HiveAuthorizationProvider
table
- table objectpart
- partition objectcolumns
- a list of columnsinputRequiredPriv
- a list of privileges needed for inputs.outputRequiredPriv
- a list of privileges needed for outputs.HiveException
protected boolean authorizeUserPriv(Privilege[] inputRequiredPriv, boolean[] inputCheck, Privilege[] outputRequiredPriv, boolean[] outputCheck) throws HiveException
HiveException
protected boolean authorizePrivileges(PrincipalPrivilegeSet privileges, Privilege[] inputPriv, boolean[] inputCheck, Privilege[] outputPriv, boolean[] outputCheck) throws HiveException
HiveException
Copyright © 2017 The Apache Software Foundation. All rights reserved.