接口 CryptoKeyReader
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 EncryptionKeyInfogetPrivateKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> metadata)EncryptionKeyInfogetPublicKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> metadata)Return the encryption key corresponding to the key name in the argument.
-
-
-
方法详细资料
-
getPublicKey
EncryptionKeyInfo getPublicKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> metadata)
Return the encryption key corresponding to the key name in the argument.This method should be implemented to return the EncryptionKeyInfo. This method will be called at the time of producer creation as well as consumer receiving messages. Hence, application should not make any blocking calls within the implementation.
- 参数:
keyName- Unique name to identify the keymetadata- Additional information needed to identify the key- 返回:
- EncryptionKeyInfo with details about the public key
-
getPrivateKey
EncryptionKeyInfo getPrivateKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> metadata)
- 参数:
keyName- Unique name to identify the keymetadata- Additional information needed to identify the key- 返回:
- byte array of the private key value
-
-