aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id
diff options
context:
space:
mode:
authorharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-02-22 16:01:52 +0000
committerharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-02-22 16:01:52 +0000
commit40c03ec3df3716cc4703eda07ee068e75698ef14 (patch)
tree9284bf207189f94873e1e9e25698d199320f0068 /id.server/src/at/gv/egovernment/moa/id
parent83c2f5367b684daa9a66fc44396f95cb281cae01 (diff)
downloadmoa-id-spss-40c03ec3df3716cc4703eda07ee068e75698ef14.tar.gz
moa-id-spss-40c03ec3df3716cc4703eda07ee068e75698ef14.tar.bz2
moa-id-spss-40c03ec3df3716cc4703eda07ee068e75698ef14.zip
organized imports
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@630 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id')
-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)