Class RawFileKeyReader
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.RawFileKeyReader
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.pulsar.client.api.CryptoKeyReader
public class RawFileKeyReader extends java.lang.Object implements org.apache.pulsar.client.api.CryptoKeyReaderExample function that provide a constructor with mapargument to initialize the CryptoKeyReader class used by pulsar function - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RawFileKeyReader(java.lang.String pubKeyFile, java.lang.String privKeyFile)RawFileKeyReader(java.util.Map<java.lang.String,java.lang.Object> conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pulsar.client.api.EncryptionKeyInfogetPrivateKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> keyMeta)org.apache.pulsar.client.api.EncryptionKeyInfogetPublicKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> keyMeta)
-
-
-
Method Detail
-
getPublicKey
public org.apache.pulsar.client.api.EncryptionKeyInfo getPublicKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> keyMeta)- Specified by:
getPublicKeyin interfaceorg.apache.pulsar.client.api.CryptoKeyReader
-
getPrivateKey
public org.apache.pulsar.client.api.EncryptionKeyInfo getPrivateKey(java.lang.String keyName, java.util.Map<java.lang.String,java.lang.String> keyMeta)- Specified by:
getPrivateKeyin interfaceorg.apache.pulsar.client.api.CryptoKeyReader
-
-