Class KeystoreKeys.Builder
java.lang.Object
io.helidon.common.pki.KeystoreKeys.BuilderBase<KeystoreKeys.Builder, KeystoreKeys>
io.helidon.common.pki.KeystoreKeys.Builder
- All Implemented Interfaces:
Prototype.Builder<KeystoreKeys.Builder, KeystoreKeys>, Builder<KeystoreKeys.Builder, KeystoreKeys>, ConfigBuilderSupport.ConfiguredBuilder<KeystoreKeys.Builder, KeystoreKeys>, Supplier<KeystoreKeys>
- Enclosing interface:
KeystoreKeys
public static class KeystoreKeys.Builder
extends KeystoreKeys.BuilderBase<KeystoreKeys.Builder, KeystoreKeys>
implements Builder<KeystoreKeys.Builder, KeystoreKeys>
Fluent API builder for
KeystoreKeys.-
Nested Class Summary
Nested classes/interfaces inherited from class KeystoreKeys.BuilderBase
KeystoreKeys.BuilderBase.KeystoreKeysImplModifier 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 KeystoreKeys.BuilderBase
addCertAlias, addCertAliases, certAlias, certAlias, certAliases, certAliases, certChainAlias, certChainAlias, clearCertAlias, clearCertAliases, clearCertChainAlias, clearKeyAlias, clearKeyPassphrase, clearPassphrase, config, config, from, from, keyAlias, keyAlias, keyPassphrase, keyPassphrase, keyPassphrase, keystore, keystore, keystore, keystore, keystore, passphrase, passphrase, passphrase, preBuildPrototype, toString, trustStore, trustStore, type, type, validatePrototypeModifier and TypeMethodDescriptionaddCertAlias(String certAlias) List of aliases used to generate a trusted set of certificates.addCertAliases(List<String> certAliases) List of aliases used to generate a trusted set of certificates.Alias of X.509 certificate of public key.Alias of X.509 certificate of public key.List of aliases used to generate a trusted set of certificates.certAliases(List<String> certAliases) List of aliases used to generate a trusted set of certificates.Alias of an X.509 chain.certChainAlias(String certChainAlias) Alias of an X.509 chain.Clear existing value of certAlias.Clear all certAliases.Clear existing value of certChainAlias.Clear existing value of keyAlias.Clear existing value of keyPassphrase.Clear existing value of passphrase.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(KeystoreKeys prototype) Update this builder from an existing prototype instance.from(KeystoreKeys.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.keyAlias()Alias of the private key in the keystore.Alias of the private key in the keystore.Optional<char[]> Pass-phrase of the key in the keystore (used for private keys).keyPassphrase(char[] keyPassphrase) Pass-phrase of the key in the keystore (used for private keys).keyPassphrase(String keyPassphrase) Pass-phrase of the key in the keystore (used for private keys).keystore()Keystore resource definition.Keystore resource definition.keystore(ResourceConfig keystore) Keystore resource definition.keystore(Consumer<ResourceConfig.Builder> consumer) Keystore resource definition.Keystore resource definition.Optional<char[]> Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).passphrase(char[] passphrase) Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).passphrase(String passphrase) Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).protected voidHandles providers and decorators.toString()booleanIf you want to build a trust store, call this method to add all certificates present in the keystore to certificate list.trustStore(boolean trustStore) If you want to build a trust store, call this method to add all certificates present in the keystore to certificate list.type()Set type of keystore.Set type of keystore.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 KeystoreKeysget()default KeystoreKeys.Builderidentity()Instance of this builder as the correct type.default KeystoreKeys.Builderupdate(Consumer<KeystoreKeys.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault KeystoreKeys.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<KeystoreKeys.Builder, KeystoreKeys>- 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<KeystoreKeys.Builder, KeystoreKeys>- Returns:
- instance of the built type
-