class RangerCredentialProvider {

  List<CredentialProvider>  getCredentialProviders(String url){
   try {
	   Configuration conf = new Configuration();

	   conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, url);

	   return CredentialProviderFactory.getProviders(conf);   
      } catch(Exception ie) {
    	  LOG.error("Unable to get the Credential Provider from the Configuration", ie);
      }     
   return null;
  }

}