final case class TlsConfiguration(enabled: Boolean, certChainFile: Option[File] = None, privateKeyFile: Option[File] = None, trustCollectionFile: Option[File] = None, secretsUrl: Option[SecretsUrl] = None, clientAuth: ClientAuth = ClientAuth.REQUIRE, enableCertRevocationChecking: Boolean = false, minimumServerProtocolVersion: Option[TlsVersion.TlsVersion] = None) extends Product with Serializable
- Annotations
- @SuppressWarnings()
- Alphabetic
- By Inheritance
- TlsConfiguration
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TlsConfiguration(enabled: Boolean, certChainFile: Option[File] = None, privateKeyFile: Option[File] = None, trustCollectionFile: Option[File] = None, secretsUrl: Option[SecretsUrl] = None, clientAuth: ClientAuth = ClientAuth.REQUIRE, enableCertRevocationChecking: Boolean = false, minimumServerProtocolVersion: Option[TlsVersion.TlsVersion] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val certChainFile: Option[File]
- def client(enabledProtocols: Seq[TlsVersion.TlsVersion] = Seq.empty): Option[SslContext]
If enabled and all required fields are present, it returns an SslContext suitable for client usage
- val clientAuth: ClientAuth
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val enableCertRevocationChecking: Boolean
- val enabled: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val minimumServerProtocolVersion: Option[TlsVersion.TlsVersion]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val privateKeyFile: Option[File]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val secretsUrl: Option[SecretsUrl]
- def server: Option[SslContext]
If enabled and all required fields are present, it returns an SslContext suitable for server usage
If enabled and all required fields are present, it returns an SslContext suitable for server usage
Details: We create two instances of sslContext: 1) The first one with default protocols: in order to query it for a set of supported protocols. 2) The second one with a custom set of protocols to enable. We have used previously obtained set of supported protocols to make sure every protocol we want to enable is supported.
- def setJvmTlsProperties(): Unit
This is a side-effecting method.
This is a side-effecting method. It modifies JVM TLS properties according to the TLS configuration.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val trustCollectionFile: Option[File]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])