Skip to content

Commit 27984c2

Browse files
svenzikmrts
authored andcommitted
Add debug statement when returning early
WE2-1026 Signed-off-by: Sven Mitt <[email protected]>
1 parent a4e11aa commit 27984c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/eu/webeid/security/validator/certvalidators/SubjectCertificatePurposeValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static void validateCertificatePurpose(X509Certificate subjectCertificate
5757
if (usages == null || usages.isEmpty()) {
5858
// Digital Signature extension present, but Extended Key Usage extension not present,
5959
// assume it is an authentication certificate (e.g. Luxembourg eID).
60+
LOG.debug("User certificate has Digital Signature key usage and no Extended Key Usage extension, this means that it can be used for client authentication.");
6061
return;
6162
}
6263
if (!usages.contains(EXTENDED_KEY_USAGE_CLIENT_AUTHENTICATION)) {

0 commit comments

Comments
 (0)