public class MetaStoreAuthzAPIAuthorizerEmbedOnly extends HiveAuthorizationProviderBase implements HiveMetastoreAuthorizationProvider
HiveAuthorizationProviderBase.HiveProxy| Modifier and Type | Field and Description |
|---|---|
static String |
errMsg |
authenticator, hive_db, LOG| Constructor and Description |
|---|
MetaStoreAuthzAPIAuthorizerEmbedOnly() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(org.apache.hadoop.hive.metastore.api.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,
List<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.
|
void |
authorizeAuthorizationApiInvocation()
Authorize metastore authorization api call.
|
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
setMetaStoreHandler(IHMSHandler 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.
|
getAuthenticator, getConf, getHivePolicyProvider, setAuthenticator, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHivePolicyProvidergetAuthenticator, setAuthenticatorpublic static final String errMsg
public MetaStoreAuthzAPIAuthorizerEmbedOnly()
public void init(org.apache.hadoop.conf.Configuration conf)
throws HiveException
init in interface HiveAuthorizationProviderHiveExceptionpublic void authorize(Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProviderauthorize in interface HiveAuthorizationProviderreadRequiredPriv - a list of privileges needed for inputs.writeRequiredPriv - a list of privileges needed for outputs.HiveExceptionAuthorizationExceptionpublic void authorize(org.apache.hadoop.hive.metastore.api.Database db,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
throws HiveException,
AuthorizationException
HiveAuthorizationProviderauthorize in interface HiveAuthorizationProviderdb - databasereadRequiredPriv - a list of privileges needed for inputs.writeRequiredPriv - a list of privileges needed for outputs.HiveExceptionAuthorizationExceptionpublic void authorize(Table table, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProviderauthorize in interface HiveAuthorizationProvidertable - table objectreadRequiredPriv - a list of privileges needed for inputs.writeRequiredPriv - a list of privileges needed for outputs.HiveExceptionAuthorizationExceptionpublic void authorize(Partition part, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProviderauthorize in interface HiveAuthorizationProviderpart - partition objectreadRequiredPriv - a list of privileges needed for inputs.writeRequiredPriv - a list of privileges needed for outputs.HiveExceptionAuthorizationExceptionpublic void authorize(Table table, Partition part, List<String> columns, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
HiveAuthorizationProviderauthorize in interface HiveAuthorizationProvidertable - table objectpart - partition objectcolumns - a list of columnsreadRequiredPriv - a list of privileges needed for inputs.writeRequiredPriv - a list of privileges needed for outputs.HiveExceptionAuthorizationExceptionpublic void setMetaStoreHandler(IHMSHandler handler)
HiveMetastoreAuthorizationProvidersetMetaStoreHandler in interface HiveMetastoreAuthorizationProviderpublic void authorizeAuthorizationApiInvocation()
throws AuthorizationException
HiveMetastoreAuthorizationProviderauthorizeAuthorizationApiInvocation in interface HiveMetastoreAuthorizationProviderAuthorizationExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.