[java-shib-idp2 COMMIT] /branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext...

noreply at shibboleth.net noreply at shibboleth.net
Fri Oct 21 13:45:54 BST 2011


Author: lajoie
Date: Fri Oct 21 13:45:54 2011
New Revision: 3080

URL: http://svn.shibboleth.net/view/java-shib-idp2?rev=3080&view=rev
Log:
Fix improperly referenced class...  I hate how Eclipse "helps" by adding extra libraries to the classpath

Modified:
    branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java

Modified: branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java
URL: http://svn.shibboleth.net/view/java-shib-idp2/branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java?rev=3080&r1=3079&r2=3080&view=diff
==============================================================================
--- branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java (original)
+++ branches/REL_2/src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java Fri Oct 21 13:45:54 2011
@@ -18,10 +18,10 @@
 package edu.internet2.middleware.shibboleth.idp.authn;
 
 import java.io.Serializable;
+import java.io.StringReader;
 import java.io.StringWriter;
 import java.util.List;
 
-import org.apache.tools.ant.filters.StringInputStream;
 import org.opensaml.Configuration;
 import org.opensaml.saml2.core.AuthnContext;
 import org.opensaml.saml2.core.AuthnContextClassRef;
@@ -102,7 +102,7 @@
         if (authnRequest == null) {
             try {
                 ParserPool parser = Configuration.getParserPool();
-                Document requestDoc = parser.parse(new StringInputStream(serialAuthnRequest));
+                Document requestDoc = parser.parse(new StringReader(serialAuthnRequest));
                 Unmarshaller requestUnmarshaller =
                         Configuration.getUnmarshallerFactory().getUnmarshaller(AuthnRequest.TYPE_NAME);
                 authnRequest = (AuthnRequest) requestUnmarshaller.unmarshall(requestDoc.getDocumentElement());



More information about the commits mailing list