Skip to content

Commit 493b2ee

Browse files
committed
Merge branch 'v2.2.x' into backport-v3-to-v2-helper
2 parents 1cea8f4 + 823b0a7 commit 493b2ee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<java.version>11</java.version>
1919
<jjwt.version>0.12.6</jjwt.version>
2020
<bouncycastle.version>1.80</bouncycastle.version>
21-
<jackson.version>2.18.3</jackson.version>
21+
<jackson.version>2.18.5</jackson.version>
2222
<slf4j.version>2.0.17</slf4j.version>
2323
<junit-jupiter.version>5.12.0</junit-jupiter.version>
2424
<assertj.version>3.27.3</assertj.version>

src/main/java/eu/webeid/security/validator/AuthTokenValidatorBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public AuthTokenValidatorBuilder withTrustedCertificateAuthorities(X509Certifica
7777
if (LOG.isDebugEnabled()) {
7878
LOG.debug("Trusted intermediate certificate authorities set to {}",
7979
configuration.getTrustedCACertificates().stream()
80-
.map(X509Certificate::getSubjectDN)
80+
.map(X509Certificate::getSubjectX500Principal)
8181
.collect(Collectors.toList()));
8282
}
8383
return this;

src/main/java/eu/webeid/security/validator/AuthTokenValidatorImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public WebEidAuthToken parse(String authToken) throws AuthTokenException {
106106
validateTokenLength(authToken);
107107
return parseToken(authToken);
108108
} catch (Exception e) {
109-
// Generally "log and rethrow" is an anti-pattern, but it fits with the surrounding logging style.
109+
// Generally "log and rethrow" is an antipattern, but it fits with the surrounding logging style.
110110
LOG.warn("Token parsing was interrupted:", e);
111111
throw e;
112112
}
@@ -118,7 +118,7 @@ public X509Certificate validate(WebEidAuthToken authToken, String currentChallen
118118
LOG.info("Starting token validation");
119119
return validateToken(authToken, currentChallengeNonce);
120120
} catch (Exception e) {
121-
// Generally "log and rethrow" is an anti-pattern, but it fits with the surrounding logging style.
121+
// Generally "log and rethrow" is an antipattern, but it fits with the surrounding logging style.
122122
LOG.warn("Token validation was interrupted:", e);
123123
throw e;
124124
}

src/main/java/eu/webeid/security/validator/ocsp/OcspResponseValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void validateHasSigningExtension(X509Certificate certificate) thro
5858
Objects.requireNonNull(certificate, "certificate");
5959
try {
6060
if (certificate.getExtendedKeyUsage() == null || !certificate.getExtendedKeyUsage().contains(OID_OCSP_SIGNING)) {
61-
throw new OCSPCertificateException("Certificate " + certificate.getSubjectDN() +
61+
throw new OCSPCertificateException("Certificate " + certificate.getSubjectX500Principal() +
6262
" does not contain the key usage extension for OCSP response signing");
6363
}
6464
} catch (CertificateParsingException e) {

0 commit comments

Comments
 (0)