Skip to content
Snippets Groups Projects
Commit 43b5a8d1 authored by Michael Simon's avatar Michael Simon
Browse files

Merge branch 'feature/ISSUE-234_upgrade-libraries' into 'main'

Resolve "Upgrade libraries"

Closes #234

See merge request !106
parents 6b319c62 ec3066a8
No related branches found
No related tags found
1 merge request!106Resolve "Upgrade libraries"
......@@ -19,7 +19,7 @@
<org.wildfly.version>35.0.1.Final</org.wildfly.version>
<org.drools.version>10.0.0</org.drools.version>
<javax.javaee.version>10.0.0</javax.javaee.version>
<org.opensaml.version>5.0.0</org.opensaml.version>
<org.opensaml.version>5.1.4</org.opensaml.version>
<org.apache.velocity>2.4.1</org.apache.velocity>
<vt-ldap.version>3.3.9</vt-ldap.version>
<org.slf4j.version>1.7.2</org.slf4j.version>
......
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.service.saml;
import java.io.Serializable;
import org.apache.hc.client5.http.classic.HttpClient;
import org.opensaml.soap.client.http.HttpSOAPClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.shibboleth.shared.xml.ParserPool;
public class HttpSignableSoapClient extends HttpSOAPClient implements Serializable {
private static final long serialVersionUID = 1L;
private static Logger logger = LoggerFactory.getLogger(HttpSignableSoapClient.class);
public HttpSignableSoapClient(HttpClient client, ParserPool parser) {
super();
setHttpClient(client);
setParserPool(parser);
}
// @Override
// protected RequestEntity createRequestEntity(Envelope message, Charset charset) throws SOAPClientException {
// try {
// Marshaller marshaller = Configuration.getMarshallerFactory().getMarshaller(message);
// ByteArrayOutputStream arrayOut = new ByteArrayOutputStream();
//
// Element element = marshaller.marshall(message);
// try {
// Signer.signObject(signature);
// } catch (SignatureException e) {
// throw new SOAPClientException(e);
// }
//
// if (logger.isDebugEnabled()) {
// logger.debug("Outbound SOAP message is:\n" + SerializeSupport.prettyPrintXML(element));
// }
// SerializeSupport.writeNode(element, arrayOut);
// return new ByteArrayRequestEntity(arrayOut.toByteArray(), "text/xml");
// } catch (MarshallingException e) {
// throw new SOAPClientException("Unable to marshall SOAP envelope", e);
// }
// }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment