SASTokenProviderpublic class FixedSASTokenProvider extends java.lang.Object implements SASTokenProvider
SASTokenProvider to use a fixed SAS token with ABFS.
Use this to avoid implementing a Custom Token Provider just to return fixed SAS.
Fixed SAS Token to be provided using the config "fs.azure.sas.fixed.token".CHECK_ACCESS_OPERATION, CREATE_DIRECTORY_OPERATION, CREATE_FILE_OPERATION, DELETE_OPERATION, DELETE_RECURSIVE_OPERATION, GET_ACL_OPERATION, GET_PROPERTIES_OPERATION, GET_STATUS_OPERATION, LIST_OPERATION, READ_OPERATION, RENAME_DESTINATION_OPERATION, RENAME_SOURCE_OPERATION, SET_ACL_OPERATION, SET_OWNER_OPERATION, SET_PERMISSION_OPERATION, SET_PROPERTIES_OPERATION, WRITE_OPERATION| Constructor | Description |
|---|---|
FixedSASTokenProvider(java.lang.String fixedSASToken) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getSASToken(java.lang.String account,
java.lang.String fileSystem,
java.lang.String path,
java.lang.String operation) |
Returns the fixed SAS Token configured.
|
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
java.lang.String accountName) |
Initialize authorizer for Azure Blob File System.
|
public FixedSASTokenProvider(java.lang.String fixedSASToken)
throws SASTokenProviderException
SASTokenProviderExceptionpublic void initialize(org.apache.hadoop.conf.Configuration configuration,
java.lang.String accountName)
throws java.io.IOException
SASTokenProviderinitialize in interface SASTokenProviderconfiguration - Configuration objectaccountName - Account Namejava.io.IOException - network problems or similar.public java.lang.String getSASToken(java.lang.String account,
java.lang.String fileSystem,
java.lang.String path,
java.lang.String operation)
throws java.io.IOException
getSASToken in interface SASTokenProvideraccount - the name of the storage account.fileSystem - the name of the fileSystem.path - the file or directory path.operation - the operation to be performed on the path.java.io.IOException - neverCopyright © 2008–2025 Apache Software Foundation. All rights reserved.