Class PemKeys.Builder
java.lang.Object
io.helidon.common.pki.PemKeys.BuilderBase<PemKeys.Builder, PemKeys>
io.helidon.common.pki.PemKeys.Builder
- All Implemented Interfaces:
Prototype.Builder<PemKeys.Builder, PemKeys>, Builder<PemKeys.Builder, PemKeys>, ConfigBuilderSupport.ConfiguredBuilder<PemKeys.Builder, PemKeys>, Supplier<PemKeys>
- Enclosing interface:
PemKeys
public static class PemKeys.Builder
extends PemKeys.BuilderBase<PemKeys.Builder, PemKeys>
implements Builder<PemKeys.Builder, PemKeys>
Fluent API builder for
PemKeys.-
Nested Class Summary
Nested classes/interfaces inherited from class PemKeys.BuilderBase
PemKeys.BuilderBase.PemKeysImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class PemKeys.BuilderBase
certChain, certChain, certChain, certChain, certChain, certificates, certificates, certificates, certificates, certificates, clearCertChain, clearCertificates, clearKey, clearKeyPassphrase, clearPublicKey, config, config, from, from, key, key, key, key, key, keyPassphrase, keyPassphrase, keyPassphrase, preBuildPrototype, publicKey, publicKey, publicKey, publicKey, publicKey, toString, validatePrototypeModifier and TypeMethodDescriptionLoad certificate chain from PEM resource.Load certificate chain from PEM resource.certChain(ResourceConfig certChain) Load certificate chain from PEM resource.certChain(Consumer<ResourceConfig.Builder> consumer) Load certificate chain from PEM resource.Load certificate chain from PEM resource.Read one or more certificates in PEM format from a resource definition.certificates(Resource certificates) Read one or more certificates in PEM format from a resource definition.certificates(ResourceConfig certificates) Read one or more certificates in PEM format from a resource definition.certificates(Consumer<ResourceConfig.Builder> consumer) Read one or more certificates in PEM format from a resource definition.certificates(Supplier<? extends Resource> supplier) Read one or more certificates in PEM format from a resource definition.Clear existing value of certChain.Clear existing value of certificates.clearKey()Clear existing value of key.Clear existing value of keyPassphrase.Clear existing value of publicKey.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Update this builder from an existing prototype instance.from(PemKeys.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.key()Read a private key from PEM format from a resource definition.Read a private key from PEM format from a resource definition.key(ResourceConfig key) Read a private key from PEM format from a resource definition.key(Consumer<ResourceConfig.Builder> consumer) Read a private key from PEM format from a resource definition.Read a private key from PEM format from a resource definition.Optional<char[]> Passphrase for private key.keyPassphrase(char[] keyPassphrase) Passphrase for private key.keyPassphrase(String keyPassphrase) Passphrase for private key.protected voidHandles providers and decorators.Read a public key from PEM format from a resource definition.Read a public key from PEM format from a resource definition.publicKey(ResourceConfig publicKey) Read a public key from PEM format from a resource definition.publicKey(Consumer<ResourceConfig.Builder> consumer) Read a public key from PEM format from a resource definition.Read a public key from PEM format from a resource definition.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault PemKeysget()default PemKeys.Builderidentity()Instance of this builder as the correct type.default PemKeys.Builderupdate(Consumer<PemKeys.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault PemKeys.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<PemKeys.Builder, PemKeys>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<PemKeys.Builder, PemKeys>- Returns:
- instance of the built type
-