Skip to content

Commit

Permalink
Re-introduce deprecated methods
Browse files Browse the repository at this point in the history
For improved binary compatibility with 0.4.0
  • Loading branch information
raboof committed Mar 14, 2022
1 parent e2badb2 commit 769774b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2015 - 2020 Lightbend Inc. <https://www.lightbend.com>
*/

package com.typesafe.sslconfig.ssl

import javax.security.cert.X509Certificate

import com.typesafe.sslconfig.util.LoggerFactory

@deprecated("not operative", "0.5.0")
class AlgorithmChecker(mkLogger: LoggerFactory, val signatureConstraints: Set[AlgorithmConstraint], val keyConstraints: Set[AlgorithmConstraint]) {
def checkKeyAlgorithms(x509Cert: X509Certificate): Unit = ()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2015 - 2020 Lightbend Inc. <https://www.lightbend.com>
*/

package com.typesafe.sslconfig.ssl

@deprecated("not operative", "0.5.0")
object AlgorithmConstraintsParser {
def apply(input: String): AlgorithmConstraint =
new AlgorithmConstraint
}

@deprecated("not operative", "0.5.0")
class AlgorithmConstraint
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ final class SSLLooseConfig private[sslconfig] (
val acceptAnyCertificate: Boolean = false,
val allowLegacyHelloMessages: Option[Boolean] = None,
val allowUnsafeRenegotiation: Option[Boolean] = None,
@deprecated("not operative", "0.5.0") val allowWeakCiphers: Boolean = false,
@deprecated("not operative", "0.5.0") val allowWeakProtocols: Boolean = false,
val disableHostnameVerification: Boolean = false,
val disableSNI: Boolean = false) {

Expand Down Expand Up @@ -431,7 +433,6 @@ object SSLParametersConfig {
* @param enabledCipherSuites If defined, override the platform default cipher suites.
* @param enabledProtocols If defined, override the platform default protocols.
* @param disabledSignatureAlgorithms The disabled signature algorithms.
* @param disabledKeyAlgorithms The disabled key algorithms.
* @param keyManagerConfig The key manager configuration.
* @param trustManagerConfig The trust manager configuration.
* @param hostnameVerifierClass The hostname verifier class.
Expand All @@ -446,6 +447,7 @@ final class SSLConfigSettings private[sslconfig] (
val revocationLists: Option[immutable.Seq[URL]] = None,
val enabledCipherSuites: Option[immutable.Seq[String]] = None,
val enabledProtocols: Option[immutable.Seq[String]] = Some(List("TLSv1.2", "TLSv1.1", "TLSv1")),
@deprecated("not operative", "0.5.0") val disabledKeyAlgorithms: immutable.Seq[String] = Nil,
val sslParametersConfig: SSLParametersConfig = SSLParametersConfig(),
val keyManagerConfig: KeyManagerConfig = KeyManagerConfig(),
val trustManagerConfig: TrustManagerConfig = TrustManagerConfig(),
Expand Down

0 comments on commit 769774b

Please sign in to comment.