diff options
author | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2010-08-30 12:24:33 +0000 |
---|---|---|
committer | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2010-08-30 12:24:33 +0000 |
commit | f3da8c40410e3bc2a1f567d2f01e497ca3e4f38d (patch) | |
tree | 52b5714b197f00bdbca971201ec430b27656313d /bkucommon | |
parent | 5ea646343e8b2de10b0c4471a0a55353d92f4e7c (diff) | |
download | mocca-f3da8c40410e3bc2a1f567d2f01e497ca3e4f38d.tar.gz mocca-f3da8c40410e3bc2a1f567d2f01e497ca3e4f38d.tar.bz2 mocca-f3da8c40410e3bc2a1f567d2f01e497ca3e4f38d.zip |
Fixed Issue MOCCA-751 (http://jira.egovlabs.gv.at/browse/MOCCA-751).
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@806 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/accesscontroller/AuthenticationClassifier.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/accesscontroller/AuthenticationClassifier.java b/bkucommon/src/main/java/at/gv/egiz/bku/accesscontroller/AuthenticationClassifier.java index 204513e0..78fb8ed5 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/accesscontroller/AuthenticationClassifier.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/accesscontroller/AuthenticationClassifier.java @@ -34,6 +34,8 @@ public class AuthenticationClassifier { private static AuthenticationClassifier instance = new AuthenticationClassifier(); private final static String GOV_DOMAIN = ".gv.at"; + private final Logger log = LoggerFactory.getLogger(AuthenticationClassifier.class); + private AuthenticationClassifier() { } @@ -80,6 +82,11 @@ public class AuthenticationClassifier { URL url, X509Certificate cert) { if (isDataUrl) { if (url.getProtocol().equalsIgnoreCase("https")) { + if (cert == null) { + log.warn("HTTPS connection does not provide certificate. " + + "Therefore, assuming authentication class '" + PSEUDO_ANONYMOUS + "'."); + return PSEUDO_ANONYMOUS; + } if (isGovAgency(cert)) { return CERTIFIED_GOV_AGENCY; } |