你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CustomerProvidedKey Class

  • java.lang.Object
    • com.azure.storage.blob.models.CustomerProvidedKey

public class CustomerProvidedKey

Contains the customer provided key information used to encrypt a blob's content on the server.

Constructor Summary

Constructor Description
CustomerProvidedKey(byte[] key)

Creates a new wrapper for a client provided key.

CustomerProvidedKey(String key)

Creates a new wrapper for a client provided key.

Method Summary

Modifier and Type Method and Description
EncryptionAlgorithmType getEncryptionAlgorithm()

Gets the algorithm to use this key with.

String getKey()

Gets the encryption key.

String getKeySha256()

Gets the encryption key's hash.

Methods inherited from java.lang.Object

Constructor Details

CustomerProvidedKey

public CustomerProvidedKey(byte[] key)

Creates a new wrapper for a client provided key.

Parameters:

key - The encryption key bytes.

CustomerProvidedKey

public CustomerProvidedKey(String key)

Creates a new wrapper for a client provided key.

Parameters:

key - The encryption key encoded as a base64 string.

Method Details

getEncryptionAlgorithm

public EncryptionAlgorithmType getEncryptionAlgorithm()

Gets the algorithm to use this key with.

Returns:

A label for the encryption algorithm, as understood by Azure Storage.

getKey

public String getKey()

Gets the encryption key.

Returns:

A base64 encoded string of the encryption key.

getKeySha256

public String getKeySha256()

Gets the encryption key's hash.

Returns:

A base64 encoded string of the encryption key hash.

Applies to