pulsar-client-cpp
Loading...
Searching...
No Matches
pulsar::EncryptionKeyInfo Class Reference

Public Types

typedef std::map< std::string, std::string > StringMap

Public Member Functions

 EncryptionKeyInfo (std::string key, StringMap &metadata)
std::string & getKey ()
void setKey (const std::string &key)
StringMap & getMetadata (void)
void setMetadata (StringMap &metadata)

Friends

class PulsarWrapper

Constructor & Destructor Documentation

◆ EncryptionKeyInfo()

pulsar::EncryptionKeyInfo::EncryptionKeyInfo ( std::string key,
StringMap & metadata )

EncryptionKeyInfo contains the encryption key and corresponding metadata which contains additional information about the key, such as version and timestamp.

Member Function Documentation

◆ getKey()

std::string & pulsar::EncryptionKeyInfo::getKey ( )
Returns
the key of the message

◆ getMetadata()

StringMap & pulsar::EncryptionKeyInfo::getMetadata ( void )
Returns
the metadata information

◆ setKey()

void pulsar::EncryptionKeyInfo::setKey ( const std::string & key)

Set the key of the message for routing policy

Parameters
Keythe key of the message for routing policy

◆ setMetadata()

void pulsar::EncryptionKeyInfo::setMetadata ( StringMap & metadata)

Set metadata information

Parameters
Metadatathe information of metadata

The documentation for this class was generated from the following file: