Class 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.CryptoKeyReader
    Example function that provide a constructor with map argument 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.EncryptionKeyInfo getPrivateKey​(java.lang.String keyName, java.util.Map<java.lang.String,​java.lang.String> keyMeta)  
      org.apache.pulsar.client.api.EncryptionKeyInfo getPublicKey​(java.lang.String keyName, java.util.Map<java.lang.String,​java.lang.String> keyMeta)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RawFileKeyReader

        public RawFileKeyReader​(java.lang.String pubKeyFile,
                                java.lang.String privKeyFile)
      • RawFileKeyReader

        public RawFileKeyReader​(java.util.Map<java.lang.String,​java.lang.Object> conf)
    • 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:
        getPublicKey in interface org.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:
        getPrivateKey in interface org.apache.pulsar.client.api.CryptoKeyReader