public interface CryptoKeyReader extends Serializable
Modifier and Type | Method and Description |
---|---|
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.
|
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–2021 Apache Software Foundation. All rights reserved.