Class Keys.Builder
- All Implemented Interfaces:
Prototype.Builder<Keys.Builder, Keys>, Builder<Keys.Builder, Keys>, ConfigBuilderSupport.ConfiguredBuilder<Keys.Builder, Keys>, Supplier<Keys>
- Enclosing interface:
Keys
public static class Keys.Builder
extends Keys.BuilderBase<Keys.Builder, Keys>
implements Builder<Keys.Builder, Keys>
Fluent API builder for
Keys.-
Nested Class Summary
Nested classes/interfaces inherited from class Keys.BuilderBase
Keys.BuilderBase.KeysImplModifier 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 Keys.BuilderBase
addCert, addCertChain, addCertChain, addCerts, certChain, certChain, certs, certs, clearCertChain, clearCerts, clearKeystore, clearPem, clearPrivateKey, clearPublicCert, clearPublicKey, config, config, from, from, keystore, keystore, keystore, keystore, pem, pem, pem, pem, preBuildPrototype, privateKey, privateKey, publicCert, publicCert, publicKey, publicKey, toString, validatePrototypeModifier and TypeMethodDescriptionaddCert(X509Certificate cert) The X.509 Certificates.addCertChain(X509Certificate certChain) The X.509 Certificate Chain.addCertChain(List<? extends X509Certificate> certChain) The X.509 Certificate Chain.addCerts(List<? extends X509Certificate> certs) The X.509 Certificates.The X.509 Certificate Chain.certChain(List<? extends X509Certificate> certChain) The X.509 Certificate Chain.certs()The X.509 Certificates.certs(List<? extends X509Certificate> certs) The X.509 Certificates.Clear all certChain.Clear all certs.Clear existing value of keystore.clearPem()Clear existing value of pem.Clear existing value of privateKey.Clear existing value of publicCert.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(Keys.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.keystore()Configure keys from a keystore.keystore(KeystoreKeys keystore) Configure keys from a keystore.keystore(Consumer<KeystoreKeys.Builder> consumer) Configure keys from a keystore.keystore(Supplier<? extends KeystoreKeys> supplier) Configure keys from a keystore.pem()Configure keys from pem file(s).Configure keys from pem file(s).pem(Consumer<PemKeys.Builder> consumer) Configure keys from pem file(s).Configure keys from pem file(s).protected voidHandles providers and decorators.The private key of this config if configured.privateKey(PrivateKey privateKey) The private key of this config if configured.The public X.509 Certificate if configured.publicCert(X509Certificate publicCert) The public X.509 Certificate if configured.The public key of this config if configured.The public key of this config if configured.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 Keysget()default Keys.Builderidentity()Instance of this builder as the correct type.default Keys.Builderupdate(Consumer<Keys.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Keys.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<Keys.Builder, Keys>- 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<Keys.Builder, Keys>- Returns:
- instance of the built type
-