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(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(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 |
authorizeDbLevelOperations(Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv,
Collection<ReadEntity> inputs,
Collection<WriteEntity> outputs)
Authorization user level privileges.
|
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, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHivePolicyProvider
getAuthenticator, setAuthenticator
public static final String errMsg
public MetaStoreAuthzAPIAuthorizerEmbedOnly()
public void init(org.apache.hadoop.conf.Configuration conf) throws HiveException
init
in interface HiveAuthorizationProvider
HiveException
public void authorizeDbLevelOperations(Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv, Collection<ReadEntity> inputs, Collection<WriteEntity> outputs) throws HiveException, AuthorizationException
HiveAuthorizationProvider
authorizeDbLevelOperations
in interface HiveAuthorizationProvider
readRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.inputs
- input entities to be authorizedoutputs
- output entities to be authorizedHiveException
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, List<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(IHMSHandler handler)
HiveMetastoreAuthorizationProvider
setMetaStoreHandler
in interface HiveMetastoreAuthorizationProvider
public void authorizeAuthorizationApiInvocation() throws AuthorizationException
HiveMetastoreAuthorizationProvider
authorizeAuthorizationApiInvocation
in interface HiveMetastoreAuthorizationProvider
AuthorizationException
Copyright © 2022 The Apache Software Foundation. All rights reserved.