aboutsummaryrefslogtreecommitdiff
path: root/id.server
diff options
context:
space:
mode:
Diffstat (limited to 'id.server')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/validator/IdentityLinkValidator.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/validator/IdentityLinkValidator.java b/id.server/src/at/gv/egovernment/moa/id/auth/validator/IdentityLinkValidator.java
index b19b40830..0bd45e3e9 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/validator/IdentityLinkValidator.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/validator/IdentityLinkValidator.java
@@ -1,7 +1,5 @@
package at.gv.egovernment.moa.id.auth.validator;
-import java.util.HashMap;
-
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
@@ -10,7 +8,6 @@ import at.gv.egovernment.moa.util.Constants;
import at.gv.egovernment.moa.util.XPathUtils;
/**
- *
* This class is used to validate an {@link IdentityLink}
* returned by the security layer
*
@@ -94,15 +91,15 @@ public class IdentityLinkValidator implements Constants {
Element samlAssertion = identityLink.getSamlAssertion();
//Search the SAML:ASSERTION Object (A2.054)
- if (samlAssertion == null)
+ if (samlAssertion == null) {
throw new ValidateException("validator.00", null);
+ }
// Check how many saml:Assertion/saml:AttributeStatement/
// saml:Subject/ saml:SubjectConfirmation/
// saml:SubjectConfirmationData/pr:Person of type
// PhysicalPersonType exist (A2.056)
- NodeList nl =
- XPathUtils.selectNodeList(samlAssertion, PERSON_XPATH);
+ NodeList nl = XPathUtils.selectNodeList(samlAssertion, PERSON_XPATH);
// If we have just one Person-Element we don't need to check the attributes
int counterPhysicalPersonType = 0;
if (nl.getLength() > 1)