Removed log

This commit is contained in:
Sukalpo Mitra 2023-12-02 18:36:07 +08:00
parent f80b23369d
commit 10ff18597d

View File

@ -125,9 +125,7 @@ public class JwtBasedSecurityFilter extends SecurityFilter {
.findFirst() .findFirst()
.map(k -> k.asJsonObject().getJsonArray("x5c").getString(0)) .map(k -> k.asJsonObject().getJsonArray("x5c").getString(0))
.orElse(""); .orElse("");
log.info("X5c is " + publicKey);
var decode = Base64.getDecoder().decode(publicKey); var decode = Base64.getDecoder().decode(publicKey);
log.info("Decoded public key - " + publicKey);
var certificate = CertificateFactory.getInstance("X.509") var certificate = CertificateFactory.getInstance("X.509")
.generateCertificate(new ByteArrayInputStream(decode)); .generateCertificate(new ByteArrayInputStream(decode));
rsaPublicKey = (RSAPublicKey) certificate.getPublicKey(); rsaPublicKey = (RSAPublicKey) certificate.getPublicKey();