Class RawFileKeyReader
java.lang.Object
org.apache.pulsar.functions.api.examples.RawFileKeyReader
- All Implemented Interfaces:
Serializable,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 TypeMethodDescriptiongetPrivateKey(String keyName, Map<String, String> keyMeta) getPublicKey(String keyName, Map<String, String> keyMeta)
-
Constructor Details
-
RawFileKeyReader
-
RawFileKeyReader
-
-
Method Details
-
getPublicKey
- Specified by:
getPublicKeyin interfaceCryptoKeyReader
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceCryptoKeyReader
-