pulsar-client-cpp
|
#include <CryptoKeyReader.h>
Public Member Functions | |
virtual Result | getPublicKey (const std::string &keyName, std::map< std::string, std::string > &metadata, EncryptionKeyInfo &encKeyInfo) const =0 |
virtual Result | getPrivateKey (const std::string &keyName, std::map< std::string, std::string > &metadata, EncryptionKeyInfo &encKeyInfo) const =0 |
The abstract class that abstracts the access to a key store
|
pure virtual |
keyName | Unique name to identify the key |
metadata | Additional information needed to identify the key |
encKeyInfo | updated with details about the private key |
Implemented in pulsar::DefaultCryptoKeyReader.
|
pure virtual |
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 key |
metadata | Additional information needed to identify the key |
encKeyInfo | updated with details about the public key |
Implemented in pulsar::DefaultCryptoKeyReader.