类 DummyCryptoKeyReaderImpl
java.lang.Object
org.apache.pulsar.client.api.DummyCryptoKeyReaderImpl
- 所有已实现的接口:
Serializable
,CryptoKeyReader
An empty implement. Doesn't provide any public key or private key, and just returns `null`.
- 另请参阅:
-
字段概要
字段 -
方法概要
修饰符和类型方法说明getPrivateKey
(String keyName, Map<String, String> metadata) getPublicKey
(String keyName, Map<String, String> metadata) Return the encryption key corresponding to the key name in the argument.
-
字段详细资料
-
INSTANCE
-
-
方法详细资料
-
getPublicKey
从接口复制的说明: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 keymetadata
- Additional information needed to identify the key- 返回:
- EncryptionKeyInfo with details about the public key
-
getPrivateKey
- 指定者:
getPrivateKey
在接口中CryptoKeyReader
- 参数:
keyName
- Unique name to identify the keymetadata
- Additional information needed to identify the key- 返回:
- byte array of the private key value
-