类 DummyCryptoKeyReaderImpl

java.lang.Object
org.apache.pulsar.client.api.DummyCryptoKeyReaderImpl
所有已实现的接口:
Serializable, CryptoKeyReader

public class DummyCryptoKeyReaderImpl extends Object implements CryptoKeyReader
An empty implement. Doesn't provide any public key or private key, and just returns `null`.
另请参阅:
  • 字段详细资料

  • 方法详细资料

    • getPublicKey

      public EncryptionKeyInfo getPublicKey(String keyName, Map<String,String> metadata)
      从接口复制的说明: CryptoKeyReader
      Return the encryption key corresponding to the key name in the argument.

      This method should be implemented to return the EncryptionKeyInfo. This method will be called at the time of producer creation as well as consumer receiving messages. Hence, application should not make any blocking calls within the implementation.

      指定者:
      getPublicKey 在接口中 CryptoKeyReader
      参数:
      keyName - Unique name to identify the key
      metadata - Additional information needed to identify the key
      返回:
      EncryptionKeyInfo with details about the public key
    • getPrivateKey

      public EncryptionKeyInfo getPrivateKey(String keyName, Map<String,String> metadata)
      指定者:
      getPrivateKey 在接口中 CryptoKeyReader
      参数:
      keyName - Unique name to identify the key
      metadata - Additional information needed to identify the key
      返回:
      byte array of the private key value