Azure系列2.1.3 —— BlobEncryptionPolicy

 

(小弟自学Azure,文中有不正确之处,请路过各位大神指正。)

 

Package

  com.microsoft.azure.storage.blob

Mean

  表示一个blob加密策略,用于对Azure blobs进行包络加密/解密。

Inherited 

  java.lang.Object ————> BlobEncryptionPolicy

Constructors 

BlobEncryptionPolicy(IKey key, IKeyResolver keyResolver)

如果生成的策略是用于加密的,用户应该至少提供一个密钥。密钥的缺失将导致在加密期间抛出异常。如果生成的策略用于解密,用户可以提供一个keyResolver。客户端库将- 1。如果指定要获取密钥,请调用密钥解析器。2。如果没有指定解析器,但指定了一个键,则将密钥id与关键字匹配并使用它。

Key——键,用于包装/打开内容加密密钥的IKey类型的对象。

keyResolver——解析器,用于选择解密现有blob的正确密钥的密钥解析器。

Field 

    1. keyResolver:用于选择解密现有blob的正确密钥的IKeyResolver。

    2. keyWrapper:在加密过程中用于包装/打开内容键的类型IKey的对象。

 

Method

    1. public IKey getKey()、public void setKey(IKey key)

    加密期间包装/打开内容密钥的IKey

    2. public IKeyResolver getKeyResolver()、public void setKeyResolver(IKeyResolver keyResolver)

    解密现有blob的正确密钥的密钥解析器。

 

 

猜你喜欢

转载自www.cnblogs.com/DDgougou/p/9070901.html