Class TlsMaterial.BuilderBase.TlsMaterialImpl
java.lang.Object
io.helidon.common.tls.TlsMaterial.BuilderBase.TlsMaterialImpl
- All Implemented Interfaces:
Prototype.Api, TlsMaterial
- Direct Known Subclasses:
TlsConfig.BuilderBase.TlsConfigImpl
- Enclosing class:
TlsMaterial.BuilderBase<BUILDER extends TlsMaterial.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TlsMaterial>
protected static class TlsMaterial.BuilderBase.TlsMaterialImpl
extends Object
implements TlsMaterial
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TlsMaterial
TlsMaterial.Builder, TlsMaterial.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forTlsMaterial.static classTlsMaterial.BuilderBase<BUILDER extends TlsMaterial.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TlsMaterial>Fluent API builder base forTlsMaterial. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTlsMaterialImpl(TlsMaterial.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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.Algorithm of the key manager factory used when private key is defined.Key manager factory provider.Private key to use.Certificate chain of the private key.Certificate revocation check configuration.Explicit secure random to use.Algorithm to use when creating a new secure random.Provider to use when creating a new secure random.toString()trust()List of certificates that form the trust manager.booleantrustAll()Trust any certificate provided by the other side of communication.Trust manager factory algorithm.Trust manager factory provider to use.
-
Constructor Details
-
TlsMaterialImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
privateKey
Description copied from interface:TlsMaterialPrivate key to use. This is required when reloading key material and can be omitted when reloading only trust material.- Specified by:
privateKeyin interfaceTlsMaterial- Returns:
- private key to use
-
privateKeyCertChain
Description copied from interface:TlsMaterialCertificate chain of the private key.- Specified by:
privateKeyCertChainin interfaceTlsMaterial- Returns:
- private key certificate chain, only used when private key is configured
-
trust
Description copied from interface:TlsMaterialList of certificates that form the trust manager.- Specified by:
trustin interfaceTlsMaterial- Returns:
- certificates to be trusted
-
secureRandom
Description copied from interface:TlsMaterialExplicit secure random to use.- Specified by:
secureRandomin interfaceTlsMaterial- Returns:
- secure random to use
-
secureRandomProvider
Description copied from interface:TlsMaterialProvider to use when creating a new secure random. When defined,TlsMaterial.secureRandomAlgorithm()must be defined as well.- Specified by:
secureRandomProviderin interfaceTlsMaterial- Returns:
- provider to use, by default no provider is specified
-
secureRandomAlgorithm
Description copied from interface:TlsMaterialAlgorithm to use when creating a new secure random.- Specified by:
secureRandomAlgorithmin interfaceTlsMaterial- Returns:
- algorithm to use, by default uses
SecureRandomconstructor
-
keyManagerFactoryAlgorithm
Description copied from interface:TlsMaterialAlgorithm of the key manager factory used when private key is defined. Defaults toKeyManagerFactory.getDefaultAlgorithm().- Specified by:
keyManagerFactoryAlgorithmin interfaceTlsMaterial- Returns:
- algorithm to use
-
keyManagerFactoryProvider
Description copied from interface:TlsMaterialKey manager factory provider.- Specified by:
keyManagerFactoryProviderin interfaceTlsMaterial- Returns:
- provider to use
-
trustManagerFactoryAlgorithm
Description copied from interface:TlsMaterialTrust manager factory algorithm.- Specified by:
trustManagerFactoryAlgorithmin interfaceTlsMaterial- Returns:
- algorithm to use
-
trustManagerFactoryProvider
Description copied from interface:TlsMaterialTrust manager factory provider to use.- Specified by:
trustManagerFactoryProviderin interfaceTlsMaterial- Returns:
- provider to use
-
trustAll
public boolean trustAll()Description copied from interface:TlsMaterialTrust any certificate provided by the other side of communication.This is a dangerous setting: if set to
true, any certificate will be accepted, throwing away most of the security advantages of TLS. NEVER do this in production.- Specified by:
trustAllin interfaceTlsMaterial- Returns:
- whether to trust all certificates, do not use in production
-
internalKeystoreType
Description copied from interface:TlsMaterialType of the key stores used internally to create a key and trust manager factories.- Specified by:
internalKeystoreTypein interfaceTlsMaterial- Returns:
- keystore type, defaults to
KeyStore.getDefaultType()
-
internalKeystoreProvider
Description copied from interface:TlsMaterialProvider of the key stores used internally to create a key and trust manager factories.- Specified by:
internalKeystoreProviderin interfaceTlsMaterial- Returns:
- keystore provider, if not defined, provider is not specified
-
revocation
Description copied from interface:TlsMaterialCertificate revocation check configuration.- Specified by:
revocationin interfaceTlsMaterial- Returns:
- certificate revocation configuration
-
toString
-
equals
-
hashCode
-