类 RawFileKeyReader

  • 所有已实现的接口:
    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
    另请参阅:
    序列化表格
    • 构造器概要

      构造器 
      构造器 说明
      RawFileKeyReader​(java.lang.String pubKeyFile, java.lang.String privKeyFile)  
      RawFileKeyReader​(java.util.Map<java.lang.String,​java.lang.Object> conf)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • RawFileKeyReader

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

        public RawFileKeyReader​(java.util.Map<java.lang.String,​java.lang.Object> conf)
    • 方法详细资料

      • getPublicKey

        public org.apache.pulsar.client.api.EncryptionKeyInfo getPublicKey​(java.lang.String keyName,
                                                                           java.util.Map<java.lang.String,​java.lang.String> keyMeta)
        指定者:
        getPublicKey 在接口中 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)
        指定者:
        getPrivateKey 在接口中 org.apache.pulsar.client.api.CryptoKeyReader