public interface CryptoKeyReader extends Serializable
限定符和类型 | 方法和说明 |
---|---|
EncryptionKeyInfo |
getPrivateKey(String keyName,
Map<String,String> metadata) |
EncryptionKeyInfo |
getPublicKey(String keyName,
Map<String,String> metadata)
Return the encryption key corresponding to the key name in the argument
This method should be implemented to return the EncryptionKeyInfo.
|
EncryptionKeyInfo getPublicKey(String keyName, Map<String,String> metadata)
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 keyEncryptionKeyInfo getPrivateKey(String keyName, Map<String,String> metadata)
keyName
- Unique name to identify the keymetadata
- Additional information needed to identify the keyCopyright © 2017–2019 Apache Software Foundation. All rights reserved.