Fix improperly referenced class... I hate how Eclipse "helps" by adding extra librar...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Oct 2011 12:45:54 +0000 (12:45 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 21 Oct 2011 12:45:54 +0000 (12:45 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@3080 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/authn/Saml2LoginContext.java

index d6569bc..58d1349 100644 (file)
 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 @@ public class Saml2LoginContext extends LoginContext implements Serializable {
         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());