public class RemoteSASKeyGeneratorImpl extends SASKeyGeneratorImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CRED_SERVICE_URLS
Configuration parameter name expected in the Configuration
object to provide the url of the remote service "fs.azure.cred.service.urls"
|
static org.slf4j.Logger |
LOG |
static String |
SAS_KEY_GENERATOR_HTTP_CLIENT_RETRY_POLICY_ENABLED_KEY
Configuration key to enable http retry policy for SAS Key generation.
|
static String |
SAS_KEY_GENERATOR_HTTP_CLIENT_RETRY_POLICY_SPEC_KEY
Configuration key for SAS Key Generation http retry policy spec.
|
DEFAULT_CONTAINER_SAS_KEY_PERIOD, KEY_SAS_KEY_EXPIRY_PERIOD| Constructor and Description |
|---|
RemoteSASKeyGeneratorImpl(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getContainerSASUri(String storageAccount,
String container)
Interface method to retrieve SAS Key for a container within the storage
account.
|
URI |
getRelativeBlobSASUri(String storageAccount,
String container,
String relativePath)
Interface method to retrieve SAS Key for a blob within the container of the
storage account.
|
void |
initialize(org.apache.hadoop.conf.Configuration conf) |
getConf, getSasKeyExpiryPeriodpublic static final org.slf4j.Logger LOG
public static final String KEY_CRED_SERVICE_URLS
public static final String SAS_KEY_GENERATOR_HTTP_CLIENT_RETRY_POLICY_ENABLED_KEY
public static final String SAS_KEY_GENERATOR_HTTP_CLIENT_RETRY_POLICY_SPEC_KEY
public RemoteSASKeyGeneratorImpl(org.apache.hadoop.conf.Configuration conf)
public void initialize(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic URI getContainerSASUri(String storageAccount, String container) throws SASKeyGenerationException
SASKeyGeneratorInterfacestorageAccount - - Storage account namecontainer - - Container name within the storage account.SASKeyGenerationException - Exception that gets thrown during
generation of SAS Key.public URI getRelativeBlobSASUri(String storageAccount, String container, String relativePath) throws SASKeyGenerationException
SASKeyGeneratorInterfacestorageAccount - - Storage account namecontainer - - Container name within the storage account.relativePath - - Relative path within the containerSASKeyGenerationException - Exception that gets thrown during
generation of SAS Key.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.