perfsonar-dev - perfsonar: r3223 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service: authService testHarness/authService
Subject: perfsonar development work
List archive
perfsonar: r3223 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service: authService testHarness/authService
Chronological Thread
- From:
- To:
- Subject: perfsonar: r3223 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service: authService testHarness/authService
- Date: Mon, 14 Jan 2008 08:36:40 -0500
Author: rodriguez
Date: 2008-01-14 08:36:40 -0500 (Mon, 14 Jan 2008)
New Revision: 3223
Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
trunk/geant2_java-as/src/main/java/org/perfsonar/service/testHarness/authService/AuthNRequestTest.java
Log:
- Implement the workaround of the WE profile
Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
===================================================================
---
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
2008-01-14 13:34:40 UTC (rev 3222)
+++
trunk/geant2_java-as/src/main/java/org/perfsonar/service/authService/AuthNAction.java
2008-01-14 13:36:40 UTC (rev 3223)
@@ -1,21 +1,28 @@
package org.perfsonar.service.authService;
import java.net.URI;
+import java.security.Key;
import java.security.cert.X509Certificate;
import java.util.Iterator;
import net.geant.edugain.validation.ComponentID;
import net.geant.edugain.validation.Validator;
+import org.apache.xml.security.signature.Reference;
+import org.apache.xml.security.signature.SignedInfo;
+import org.apache.xml.security.signature.XMLSignature;
+import org.apache.xml.security.transforms.Transforms;
import org.ggf.ns.nmwg.base.v2_0.Data;
import org.ggf.ns.nmwg.base.v2_0.EventType;
import org.ggf.ns.nmwg.base.v2_0.Message;
import org.ggf.ns.nmwg.base.v2_0.Metadata;
import org.ggf.ns.nmwg.base.v2_0.Parameter;
+import org.opensaml.InvalidCryptoException;
import org.opensaml.SAMLAssertion;
import org.opensaml.SAMLAuthenticationStatement;
import org.opensaml.SAMLStatement;
import org.opensaml.SAMLSubject;
+import org.opensaml.XML;
import org.perfsonar.base.exceptions.PerfSONARException;
import org.perfsonar.service.base.authn.tokens.SecTokenManagerFactory;
import org.perfsonar.service.base.authn.tokens.SecurityToken;
@@ -91,6 +98,7 @@
logger.info("AuthNAction: Validating SAML assertion");
val.validate(assertion);
} catch (Throwable e) {
+ e.printStackTrace();
String m = "AuthNAction: the SAML assertion is not
valid";
logger.info(m);
throw new
PerfSONARException("error.authn.assertion_not_valid",m);
@@ -144,4 +152,4 @@
return response;
}
-}
+ }
Modified:
trunk/geant2_java-as/src/main/java/org/perfsonar/service/testHarness/authService/AuthNRequestTest.java
===================================================================
---
trunk/geant2_java-as/src/main/java/org/perfsonar/service/testHarness/authService/AuthNRequestTest.java
2008-01-14 13:34:40 UTC (rev 3222)
+++
trunk/geant2_java-as/src/main/java/org/perfsonar/service/testHarness/authService/AuthNRequestTest.java
2008-01-14 13:36:40 UTC (rev 3223)
@@ -233,7 +233,10 @@
}
StringWriter sw=new StringWriter();
-
XMLUtils.PrettyElementToWriter(requestMessage.getAsDOM(),sw);
+
XMLUtils.PrettyElementToWriter(envelope.getAsDOM(),sw);
+ System.out.println("---- Request message");
+ System.out.println(sw.toString());
+ System.out.println("---------------------");
// call on the end point
Object resultObject = call.invoke(envelope);
- perfsonar: r3223 - in trunk/geant2_java-as/src/main/java/org/perfsonar/service: authService testHarness/authService, svnlog, 01/14/2008
Archive powered by MHonArc 2.6.16.