|
23 | 23 | import org.apache.log4j.Logger; |
24 | 24 | import org.joda.time.DateTime; |
25 | 25 | import org.opensaml.Configuration; |
26 | | -import org.opensaml.DefaultBootstrap; |
27 | 26 | import org.opensaml.common.SAMLVersion; |
28 | 27 | import org.opensaml.common.xml.SAMLConstants; |
29 | 28 | import org.opensaml.saml2.core.AuthnContextClassRef; |
|
54 | 53 | import javax.xml.parsers.DocumentBuilder; |
55 | 54 | import javax.xml.parsers.DocumentBuilderFactory; |
56 | 55 | import javax.xml.parsers.ParserConfigurationException; |
57 | | -import javax.xml.stream.FactoryConfigurationError; |
58 | 56 | import java.io.ByteArrayInputStream; |
59 | 57 | import java.io.ByteArrayOutputStream; |
60 | 58 | import java.io.IOException; |
@@ -144,11 +142,6 @@ public static String encodeSAMLRequest(AuthnRequest authnRequest) |
144 | 142 | public static Response decodeSAMLResponse(String responseMessage) |
145 | 143 | throws ConfigurationException, ParserConfigurationException, |
146 | 144 | SAXException, IOException, UnmarshallingException { |
147 | | - try { |
148 | | - DefaultBootstrap.bootstrap(); |
149 | | - } catch (ConfigurationException | FactoryConfigurationError e) { |
150 | | - s_logger.error("SAML response message decoding error: " + e.getMessage()); |
151 | | - } |
152 | 145 | DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); |
153 | 146 | documentBuilderFactory.setNamespaceAware(true); |
154 | 147 | DocumentBuilder docBuilder = documentBuilderFactory.newDocumentBuilder(); |
|
0 commit comments