Class RawFileKeyReader
java.lang.Object
org.apache.pulsar.functions.api.examples.RawFileKeyReader
- All Implemented Interfaces:
Serializable,org.apache.pulsar.client.api.CryptoKeyReader
public class RawFileKeyReader
extends Object
implements org.apache.pulsar.client.api.CryptoKeyReader
Example function that provide a constructor with map<string, object> argument
to initialize the CryptoKeyReader class used by pulsar function.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRawFileKeyReader(String pubKeyFile, String privKeyFile) RawFileKeyReader(Map<String, Object> conf) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.EncryptionKeyInfogetPrivateKey(String keyName, Map<String, String> keyMeta) org.apache.pulsar.client.api.EncryptionKeyInfogetPublicKey(String keyName, Map<String, String> keyMeta)
-
Constructor Details
-
RawFileKeyReader
-
RawFileKeyReader
-
-
Method Details
-
getPublicKey
public org.apache.pulsar.client.api.EncryptionKeyInfo getPublicKey(String keyName, Map<String, String> keyMeta) - Specified by:
getPublicKeyin interfaceorg.apache.pulsar.client.api.CryptoKeyReader
-
getPrivateKey
public org.apache.pulsar.client.api.EncryptionKeyInfo getPrivateKey(String keyName, Map<String, String> keyMeta) - Specified by:
getPrivateKeyin interfaceorg.apache.pulsar.client.api.CryptoKeyReader
-