Skip to content

Commit

Permalink
support scala 3 build for util-security
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jun 22, 2022
1 parent 9f15cce commit 6e0e10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,13 @@ lazy val utilSecurity = Project(
id = "util-security",
base = file("util-security")
).settings(
sharedSettings
sharedScala3EnabledSettings
).settings(
name := "util-security",
libraryDependencies ++= Seq(
scalacheckLib,
"org.scalatestplus" %% "scalacheck-1-14" % "3.1.2.0" % "test",
snakeyaml
)
) ++ scalatestScalacheckVersionedDep(scalaVersion.value)
).dependsOn(utilCore, utilLogging, utilSecurityTestCerts % "test")

lazy val utilSecurityTestCerts = Project(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import java.security.cert.{CertificateFactory, X509Certificate}
*/
object X509CertificateDeserializer {
private[this] val MessageType: String = "CERTIFICATE"
private[this] val deserializeX509: Array[Byte] => X509Certificate = { certBytes: Array[Byte] =>
private[this] val deserializeX509: Array[Byte] => X509Certificate = { (certBytes: Array[Byte]) =>
val certFactory = CertificateFactory.getInstance("X.509")
val certificate = certFactory
.generateCertificate(new ByteArrayInputStream(certBytes))
Expand Down

0 comments on commit 6e0e10f

Please sign in to comment.