Skip to content

Commit 659f245

Browse files
committed
Use java.util.Base64 instead of org.apache.commons.codec.binary.Base64
This was probably accidentally pulled in from a transitive dependency.
1 parent 09566b5 commit 659f245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/aleph/ssl.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
(java.security KeyFactory PrivateKey)
88
(java.security.cert CertificateFactory X509Certificate)
99
(java.security.spec RSAPrivateCrtKeySpec)
10-
(org.apache.commons.codec.binary Base64)))
10+
(java.util Base64)))
1111

1212
(set! *warn-on-reflection* false)
1313

1414
(defn gen-cert
1515
^X509Certificate [^String pemstr]
1616
(.generateCertificate (CertificateFactory/getInstance "X.509")
17-
(ByteArrayInputStream. (Base64/decodeBase64 pemstr))))
17+
(ByteArrayInputStream. (.decode (Base64/getDecoder) pemstr))))
1818

1919
(defn gen-key
2020
^PrivateKey [public-exponent k]

0 commit comments

Comments
 (0)