summaryrefslogtreecommitdiffstats
path: root/security-utils
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-11-27 17:18:10 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2018-11-27 17:18:10 +0100
commit20317de277a40a6c7711ada685f7564707dc0573 (patch)
treea4eb2d1431ff4587eb53864d3f145ac9f148efdf /security-utils
parentcb866b024f4ab7a5a4944f2cdd7e3a9a00a23212 (diff)
Always log warning when authorization fails
Diffstat (limited to 'security-utils')
-rw-r--r--security-utils/src/main/java/com/yahoo/security/tls/authz/PeerAuthorizerTrustManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/security-utils/src/main/java/com/yahoo/security/tls/authz/PeerAuthorizerTrustManager.java b/security-utils/src/main/java/com/yahoo/security/tls/authz/PeerAuthorizerTrustManager.java
index b8c97f9e258..aca4f86b639 100644
--- a/security-utils/src/main/java/com/yahoo/security/tls/authz/PeerAuthorizerTrustManager.java
+++ b/security-utils/src/main/java/com/yahoo/security/tls/authz/PeerAuthorizerTrustManager.java
@@ -108,11 +108,11 @@ public class PeerAuthorizerTrustManager extends X509ExtendedTrustManager {
log.fine(() -> String.format("Verification result: %s", result));
} else {
String errorMessage = "Authorization failed: " + createInfoString(certificate, authType, isVerifyingClient);
+ log.warning(errorMessage);
switch (mode) {
case ENFORCE:
throw new CertificateException(errorMessage);
case DRY_RUN:
- log.warning(errorMessage);
break;
default:
throw new UnsupportedOperationException();