fe/src/main/java/com/cloudera/impala/authorization/AuthorizationChecker.java
/*
   * Creates a new ResourceAuthorizationProvider based on the given configuration.
   */
Creates a new ResourceAuthorizationProvider based on the given configuration.
Creates a new ResourceAuthorizationProvider based on the given configuration .
private static ResourceAuthorizationProvider
      createAuthorizationProvider(AuthorizationConfig config) {
    try {
      return (ResourceAuthorizationProvider) ConstructorUtils.invokeConstructor(
          Class.forName(config.getPolicyProviderClassName()),
          new Object[] {config.getPolicyFile(), config.getServerName()});
    } catch (Exception e) {
      throw new IllegalStateException(
          "Error creating ResourceAuthorizationProvider: " + e.getMessage(), e);
    }
  }
private static ResourceAuthorizationProvider createAuthorizationProvider ( AuthorizationConfig config ) { try { return ( ResourceAuthorizationProvider ) ConstructorUtils . invokeConstructor ( Class . forName ( config . getPolicyProviderClassName ( ) ) , new Object [ ] { config . getPolicyFile ( ) , config . getServerName ( ) } ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Error creating ResourceAuthorizationProvider: " + e . getMessage ( ) , e ) ; } }
Creates a new ResourceAuthorizationProvider based on the given configuration.
Creates a new ResourceAuthorizationProvider based on the given configuration .
// Try to create an instance of the specified policy provider class. // Re-throw any exceptions that are encountered. // Re-throw as unchecked exception.