Class PemFileKeyProvider.Builder
java.lang.Object
org.apache.pulsar.client.api.v5.auth.PemFileKeyProvider.Builder
- Enclosing class:
PemFileKeyProvider
Builder for
PemFileKeyProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()privateKey(String keyName, Path path) Register a private key file under the given name.Register a public key file under the given name.
-
Method Details
-
publicKey
Register a public key file under the given name. Producer-side use.- Parameters:
keyName- the key identifier the producer will referencepath- path to the PEM-encoded public key file- Returns:
- this builder
-
privateKey
Register a private key file under the given name. Consumer-side use.- Parameters:
keyName- the key identifier the producer used to encryptpath- path to the PEM-encoded private key file- Returns:
- this builder
-
build
- Returns:
- a new
PemFileKeyProviderinstance
-