public class DummyHiveMetastoreAuthorizationProvider extends java.lang.Object implements HiveMetastoreAuthorizationProvider
Modifier and Type | Class and Description |
---|---|
static class |
DummyHiveMetastoreAuthorizationProvider.AuthCallContextType |
Modifier and Type | Field and Description |
---|---|
static java.util.List<org.apache.hadoop.hive.ql.security.DummyHiveMetastoreAuthorizationProvider.AuthCallContext> |
authCalls |
protected HiveAuthenticationProvider |
authenticator |
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
DummyHiveMetastoreAuthorizationProvider() |
Modifier and Type | Method and Description |
---|---|
void |
authorize(Database db,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a database object.
|
void |
authorize(Partition part,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a hive partition object.
|
void |
authorize(Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization user level privileges.
|
void |
authorize(Table table,
Partition part,
java.util.List<java.lang.String> columns,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a list of columns.
|
void |
authorize(Table table,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a hive table object.
|
HiveAuthenticationProvider |
getAuthenticator() |
Configuration |
getConf() |
void |
init(Configuration conf) |
void |
setAuthenticator(HiveAuthenticationProvider authenticator) |
void |
setConf(Configuration conf) |
void |
setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
Allows invoker of HiveMetaStoreAuthorizationProvider to send in a
hive metastore handler that can be used to make calls to test
whether or not authorizations can/will succeed.
|
protected HiveAuthenticationProvider authenticator
public static final java.util.List<org.apache.hadoop.hive.ql.security.DummyHiveMetastoreAuthorizationProvider.AuthCallContext> authCalls
public static final org.apache.commons.logging.Log LOG
public DummyHiveMetastoreAuthorizationProvider()
public Configuration getConf()
public void setConf(Configuration conf)
public HiveAuthenticationProvider getAuthenticator()
getAuthenticator
in interface HiveAuthorizationProvider
public void setAuthenticator(HiveAuthenticationProvider authenticator)
setAuthenticator
in interface HiveAuthorizationProvider
public void init(Configuration conf) throws HiveException
init
in interface HiveAuthorizationProvider
HiveException
public void authorize(Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorize
in interface HiveAuthorizationProvider
readRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Database db, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorize
in interface HiveAuthorizationProvider
db
- databasereadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Table table, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorize
in interface HiveAuthorizationProvider
table
- table objectreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Partition part, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorize
in interface HiveAuthorizationProvider
part
- partition objectreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void authorize(Table table, Partition part, java.util.List<java.lang.String> columns, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorize
in interface HiveAuthorizationProvider
table
- table objectpart
- partition objectcolumns
- a list of columnsreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
public void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
HiveMetastoreAuthorizationProvider
setMetaStoreHandler
in interface HiveMetastoreAuthorizationProvider
Copyright © 2012 The Apache Software Foundation