你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SharedAccessSignatureHelper 类
- java.
lang. Object - com.
microsoft. azure. storage. core. SharedAccessSignatureHelper
- com.
public class SharedAccessSignatureHelper
保留供内部使用。 包含用于实现共享访问签名的帮助程序方法。
方法摘要
方法详细信息
generateSharedAccessSignatureForAccount
public static UriQueryBuilder generateSharedAccessSignatureForAccount(final SharedAccessAccountPolicy policy, final String signature)
获取 嵌入在 的共享访问签名中的签名 CloudStorageAccount哈希。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureForBlobAndFile
public static UriQueryBuilder generateSharedAccessSignatureForBlobAndFile(final SharedAccessPolicy policy, final SharedAccessHeaders headers, final String groupPolicyIdentifier, final String resourceType, final IPRange ipRange, final SharedAccessProtocols protocols, final String signature)
获取用于创建共享访问签名查询的完整查询生成器。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureForQueue
public static UriQueryBuilder generateSharedAccessSignatureForQueue(final SharedAccessQueuePolicy policy, final String groupPolicyIdentifier, final IPRange ipRange, final SharedAccessProtocols protocols, final String signature)
获取用于创建共享访问签名查询的完整查询生成器。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureForTable
public static UriQueryBuilder generateSharedAccessSignatureForTable(final SharedAccessTablePolicy policy, final String startPartitionKey, final String startRowKey, final String endPartitionKey, final String endRowKey, final String accessPolicyIdentifier, final IPRange ipRange, final SharedAccessProtocols protocols, final String tableName, final String signature)
获取用于创建共享访问签名查询的完整查询生成器。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureHashForAccount
public static String generateSharedAccessSignatureHashForAccount(final String accountName, final SharedAccessAccountPolicy policy, final StorageCredentials creds)
获取 嵌入在 的共享访问签名中的签名 CloudStorageAccount哈希。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureHashForBlobAndFile
public static String generateSharedAccessSignatureHashForBlobAndFile(final SharedAccessPolicy policy, SharedAccessHeaders headers, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final ServiceClient client, final String service, final String snapshotId)
获取嵌入在 Blob 或文件服务的共享访问签名中的签名哈希。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureHashForBlobAndFile
public static String generateSharedAccessSignatureHashForBlobAndFile(final SharedAccessPolicy policy, SharedAccessHeaders headers, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final ServiceClient client, final String service, final String snapshotId, boolean skipDecoding)
获取嵌入在 Blob 或文件服务的共享访问签名中的签名哈希。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureHashForQueue
public static String generateSharedAccessSignatureHashForQueue(final SharedAccessQueuePolicy policy, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final ServiceClient client)
获取嵌入在队列服务的共享访问签名中的签名哈希。
Parameters:
Returns:
Throws:
generateSharedAccessSignatureHashForTable
public static String generateSharedAccessSignatureHashForTable(final SharedAccessTablePolicy policy, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final String startPartitionKey, final String startRowKey, final String endPartitionKey, final String endRowKey, final ServiceClient client)
获取嵌入在表服务的共享访问签名中的签名哈希。
Parameters:
Returns:
Throws:
generateUserDelegationSharedAccessSignatureForBlob
public static UriQueryBuilder generateUserDelegationSharedAccessSignatureForBlob(final SharedAccessPolicy policy, final SharedAccessHeaders headers, final String resourceType, final IPRange ipRange, final SharedAccessProtocols protocols, final String signature, final UserDelegationKey delegationKey)
获取用于创建共享访问签名查询的完整查询生成器。
Parameters:
Returns:
Throws:
generateUserDelegationSharedAccessSignatureHashForBlob
public static String generateUserDelegationSharedAccessSignatureHashForBlob(final SharedAccessBlobPolicy policy, SharedAccessBlobHeaders headers, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final UserDelegationKey delegationKey)
获取 Blob 服务的用户委派共享访问签名中嵌入的签名哈希。
Parameters:
Returns:
parseQuery
public static StorageCredentialsSharedAccessSignature parseQuery(final HashMap
分析查询参数并填充 StorageCredentialsSharedAccessSignature 对象(如果存在)。
Parameters:
Returns:
Throws:
parseQuery
public static StorageCredentialsSharedAccessSignature parseQuery(final StorageUri completeUri)
分析查询参数并填充 StorageCredentialsSharedAccessSignature 对象(如果存在)。
Parameters:
Returns:
Throws: