Class EnvironmentVariableKeyProvider

  • All Implemented Interfaces:
    org.apache.hadoop.fs.azure.KeyProvider

    public class EnvironmentVariableKeyProvider
    extends Object
    implements org.apache.hadoop.fs.azure.KeyProvider
    An implementation of KeyProvider, which reads the Azure storage key from an environment variable named "AZURE_STORAGE_KEY".
    • Constructor Detail

      • EnvironmentVariableKeyProvider

        public EnvironmentVariableKeyProvider()
    • Method Detail

      • getStorageAccountKey

        public String getStorageAccountKey​(String s,
                                           org.apache.hadoop.conf.Configuration configuration)
                                    throws org.apache.hadoop.fs.azure.KeyProviderException
        Specified by:
        getStorageAccountKey in interface org.apache.hadoop.fs.azure.KeyProvider
        Throws:
        org.apache.hadoop.fs.azure.KeyProviderException