Class TlsConfig.Builder
java.lang.Object
io.helidon.common.tls.TlsMaterial.BuilderBase<TlsConfig.Builder, TlsConfig>
io.helidon.common.tls.TlsConfig.BuilderBase<TlsConfig.Builder, TlsConfig>
io.helidon.common.tls.TlsConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<TlsConfig.Builder, TlsConfig>, Builder<TlsConfig.Builder, Tls>, ConfigBuilderSupport.ConfiguredBuilder<TlsConfig.Builder, TlsConfig>, Supplier<Tls>
- Enclosing interface:
TlsConfig
public static class TlsConfig.Builder
extends TlsConfig.BuilderBase<TlsConfig.Builder, TlsConfig>
implements Builder<TlsConfig.Builder, Tls>
Fluent API builder for
Tls.-
Nested Class Summary
Nested classes/interfaces inherited from class TlsConfig.BuilderBase
TlsConfig.BuilderBase.TlsConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class TlsMaterial.BuilderBase
TlsMaterial.BuilderBase.TlsMaterialImplModifier 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 TlsConfig.BuilderBase
addApplicationProtocol, addApplicationProtocols, addEnabledCipherSuite, addEnabledCipherSuites, addEnabledProtocol, addEnabledProtocols, applicationProtocols, applicationProtocols, clearApplicationProtocols, clearEnabledCipherSuites, clearEnabledProtocols, clearProvider, clearSslContext, clearSslParameters, clientAuth, clientAuth, config, enabled, enabled, enabledCipherSuites, enabledCipherSuites, enabledProtocols, enabledProtocols, endpointIdentificationAlgorithm, endpointIdentificationAlgorithm, from, from, manager, manager, managerDiscoverServices, managerDiscoverServices, preBuildPrototype, protocol, protocol, provider, provider, sessionCacheSize, sessionCacheSize, sessionTimeout, sessionTimeout, sslContext, sslContext, sslParameters, sslParameters, toString, validatePrototypeModifier and TypeMethodDescriptionaddApplicationProtocol(String applicationProtocol) Configure list of supported application protocols (such ash2) for application layer protocol negotiation (ALPN).addApplicationProtocols(List<String> applicationProtocols) Configure list of supported application protocols (such ash2) for application layer protocol negotiation (ALPN).addEnabledCipherSuite(String enabledCipherSuite) Enabled cipher suites for TLS communication.addEnabledCipherSuites(List<String> enabledCipherSuites) Enabled cipher suites for TLS communication.addEnabledProtocol(String enabledProtocol) Enabled protocols for TLS communication.addEnabledProtocols(List<String> enabledProtocols) Enabled protocols for TLS communication.Configure list of supported application protocols (such ash2) for application layer protocol negotiation (ALPN).applicationProtocols(List<String> applicationProtocols) Configure list of supported application protocols (such ash2) for application layer protocol negotiation (ALPN).Clear all applicationProtocols.Clear all enabledCipherSuites.Clear all enabledProtocols.Clear existing value of provider.Clear existing value of sslContext.Clear existing value of sslParameters.Configure requirement for mutual TLS.clientAuth(TlsClientAuth clientAuth) Configure requirement for mutual TLS.Update builder from configuration (node of this type).booleanenabled()Flag indicating whether Tls is enabled.enabled(boolean enabled) Flag indicating whether Tls is enabled.Enabled cipher suites for TLS communication.enabledCipherSuites(List<String> enabledCipherSuites) Enabled cipher suites for TLS communication.Enabled protocols for TLS communication.enabledProtocols(List<String> enabledProtocols) Enabled protocols for TLS communication.Identification algorithm for SSL endpoints.endpointIdentificationAlgorithm(String endpointIdentificationAlgorithm) Identification algorithm for SSL endpoints.Update this builder from an existing prototype instance.from(TlsConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.manager()The configured TLS manager.manager(TlsManager manager) The configured TLS manager.booleanService discovery flag forTlsConfig.BuilderBase.manager().managerDiscoverServices(boolean managerDiscoverServices) Service discovery flag forTlsConfig.BuilderBase.manager().protected voidHandles providers and decorators.protocol()Configure the protocol used to obtain an instance ofSSLContext.Configure the protocol used to obtain an instance ofSSLContext.provider()Use explicit provider to obtain an instance ofSSLContext.Use explicit provider to obtain an instance ofSSLContext.intSSL session cache size.sessionCacheSize(int sessionCacheSize) SSL session cache size.SSL session timeout.sessionTimeout(Duration sessionTimeout) SSL session timeout.Provide a fully configuredSSLContext.sslContext(SSLContext sslContext) Provide a fully configuredSSLContext.Configure SSL parameters.sslParameters(SSLParameters sslParameters) Configure SSL parameters.toString()protected voidValidates required properties.Methods inherited from class TlsMaterial.BuilderBase
addPrivateKeyCertChain, addPrivateKeyCertChain, addTrust, addTrust, clearInternalKeystoreProvider, clearInternalKeystoreType, clearKeyManagerFactoryAlgorithm, clearKeyManagerFactoryProvider, clearPrivateKey, clearPrivateKeyCertChain, clearRevocation, clearSecureRandom, clearSecureRandomAlgorithm, clearSecureRandomProvider, clearTrust, clearTrustManagerFactoryAlgorithm, clearTrustManagerFactoryProvider, config, from, from, internalKeystoreProvider, internalKeystoreProvider, internalKeystoreType, internalKeystoreType, keyManagerFactoryAlgorithm, keyManagerFactoryAlgorithm, keyManagerFactoryProvider, keyManagerFactoryProvider, privateKey, privateKey, privateKey, privateKey, privateKeyCertChain, privateKeyCertChain, privateKeyCertChain, privateKeyCertChain, revocation, revocation, revocation, revocation, secureRandom, secureRandom, secureRandomAlgorithm, secureRandomAlgorithm, secureRandomProvider, secureRandomProvider, trust, trust, trust, trust, trustAll, trustAll, trustManagerFactoryAlgorithm, trustManagerFactoryAlgorithm, trustManagerFactoryProvider, trustManagerFactoryProviderModifier and TypeMethodDescriptionaddPrivateKeyCertChain(X509Certificate privateKeyCertChain) Certificate chain of the private key.addPrivateKeyCertChain(List<? extends X509Certificate> privateKeyCertChain) Certificate chain of the private key.addTrust(X509Certificate trust) List of certificates that form the trust manager.addTrust(List<? extends X509Certificate> trust) List of certificates that form the trust manager.Clear existing value of internalKeystoreProvider.Clear existing value of internalKeystoreType.Clear existing value of keyManagerFactoryAlgorithm.Clear existing value of keyManagerFactoryProvider.Clear existing value of privateKey.Clear all privateKeyCertChain.Clear existing value of revocation.Clear existing value of secureRandom.Clear existing value of secureRandomAlgorithm.Clear existing value of secureRandomProvider.Clear all trust.Clear existing value of trustManagerFactoryAlgorithm.Clear existing value of trustManagerFactoryProvider.config()Configuration used to configure this instance.from(TlsMaterial prototype) Update this builder from an existing prototype instance.from(TlsMaterial.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Provider of the key stores used internally to create a key and trust manager factories.internalKeystoreProvider(String internalKeystoreProvider) Provider of the key stores used internally to create a key and trust manager factories.Type of the key stores used internally to create a key and trust manager factories.internalKeystoreType(String internalKeystoreType) Type of the key stores used internally to create a key and trust manager factories.Algorithm of the key manager factory used when private key is defined.keyManagerFactoryAlgorithm(String keyManagerFactoryAlgorithm) Algorithm of the key manager factory used when private key is defined.Key manager factory provider.keyManagerFactoryProvider(String keyManagerFactoryProvider) Key manager factory provider.Private key to use.privateKey(Keys privateKey) Private key to use.privateKey(PrivateKey privateKey) Private key to use.privateKey(Consumer<Keys.Builder> consumer) Private key to use.Certificate chain of the private key.privateKeyCertChain(Keys privateKeyCertChain) Certificate chain of the private key.privateKeyCertChain(Consumer<Keys.Builder> consumer) Certificate chain of the private key.privateKeyCertChain(List<? extends X509Certificate> privateKeyCertChain) Certificate chain of the private key.Certificate revocation check configuration.revocation(RevocationConfig revocation) Certificate revocation check configuration.revocation(Consumer<RevocationConfig.Builder> consumer) Certificate revocation check configuration.revocation(Supplier<? extends RevocationConfig> supplier) Certificate revocation check configuration.Explicit secure random to use.secureRandom(SecureRandom secureRandom) Explicit secure random to use.Algorithm to use when creating a new secure random.secureRandomAlgorithm(String secureRandomAlgorithm) Algorithm to use when creating a new secure random.Provider to use when creating a new secure random.secureRandomProvider(String secureRandomProvider) Provider to use when creating a new secure random.trust()List of certificates that form the trust manager.List of certificates that form the trust manager.trust(Consumer<Keys.Builder> consumer) List of certificates that form the trust manager.trust(List<? extends X509Certificate> trust) List of certificates that form the trust manager.booleantrustAll()Trust any certificate provided by the other side of communication.trustAll(boolean trustAll) Trust any certificate provided by the other side of communication.Trust manager factory algorithm.trustManagerFactoryAlgorithm(String trustManagerFactoryAlgorithm) Trust manager factory algorithm.Trust manager factory provider to use.trustManagerFactoryProvider(String trustManagerFactoryProvider) Trust manager factory provider to use.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Tlsget()default TlsConfig.Builderidentity()Instance of this builder as the correct type.default TlsConfig.Builderupdate(Consumer<TlsConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TlsConfig.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<TlsConfig.Builder, TlsConfig>- 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<TlsConfig.Builder, Tls>- Returns:
- instance of the built type
-