Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.authorization.AuthorizationConfig Class Reference
Collaboration diagram for com.cloudera.impala.authorization.AuthorizationConfig:

Public Member Functions

 AuthorizationConfig (String serverName, String policyFile, String sentryConfigFile, String policyProviderClassName)
 
void validateConfig () throws IllegalArgumentException
 
boolean isEnabled ()
 
boolean isFileBasedPolicy ()
 
String getServerName ()
 
String getPolicyFile ()
 
SentryConfig getSentryConfig ()
 
String getPolicyProviderClassName ()
 

Static Public Member Functions

static AuthorizationConfig createAuthDisabledConfig ()
 
static AuthorizationConfig createHadoopGroupAuthConfig (String serverName, String policyFile, String sentryConfigFile)
 

Private Attributes

final String serverName_
 
final String policyFile_
 
final SentryConfig sentryConfig_
 
final String policyProviderClassName_
 

Detailed Description

Definition at line 27 of file AuthorizationConfig.java.

Constructor & Destructor Documentation

com.cloudera.impala.authorization.AuthorizationConfig.AuthorizationConfig ( String  serverName,
String  policyFile,
String  sentryConfigFile,
String  policyProviderClassName 
)
inline

Creates a new authorization configuration object.

Parameters
serverName- The name of this Impala server.
policyFile- The path to the authorization policy file or null if the policy engine is not file based.
sentryConfigFile- Absolute path and file name of the sentry service.
policyProviderClassName- Class name of the policy provider to use.

Definition at line 42 of file AuthorizationConfig.java.

References com.cloudera.impala.authorization.AuthorizationConfig.policyFile_, com.cloudera.impala.authorization.AuthorizationConfig.policyProviderClassName_, com.cloudera.impala.authorization.AuthorizationConfig.sentryConfig_, and com.cloudera.impala.authorization.AuthorizationConfig.serverName_.

Referenced by com.cloudera.impala.authorization.AuthorizationConfig.createAuthDisabledConfig(), and com.cloudera.impala.authorization.AuthorizationConfig.createHadoopGroupAuthConfig().

Member Function Documentation

static AuthorizationConfig com.cloudera.impala.authorization.AuthorizationConfig.createHadoopGroupAuthConfig ( String  serverName,
String  policyFile,
String  sentryConfigFile 
)
inlinestatic
String com.cloudera.impala.authorization.AuthorizationConfig.getPolicyFile ( )
inline
String com.cloudera.impala.authorization.AuthorizationConfig.getPolicyProviderClassName ( )
inline
String com.cloudera.impala.authorization.AuthorizationConfig.getServerName ( )
inline

Member Data Documentation


The documentation for this class was generated from the following file: