From 40c03ec3df3716cc4703eda07ee068e75698ef14 Mon Sep 17 00:00:00 2001 From: "harald.bratko" Date: Wed, 22 Feb 2006 16:01:52 +0000 Subject: organized imports git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@630 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../egovernment/moa/id/auth/validator/IdentityLinkValidator.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'id.server/src/at/gv/egovernment') 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) -- cgit v1.2.3