wss4j

How to turn off SecureConversationToken in WCF web service

扶醉桌前 提交于 2019-12-10 11:47:32
问题 I have a WCF web service with WS-* security and I need to write a Java client for it using WSS4J API. But, as it turns out WSS4J does not support the <SecurityContextToken> and <DerivedKeyToken> tags, which are specific to WS-SecureConversation. is there a way to turn it off via code or better, via web.config? UPDATE: Service definition: <service name="my.service" behaviorConfiguration="SecureTransport"> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

Allow the RSA v1.5 Key Transport Algorithm for WildFly / JBossWS / CXF / WSS4J stack

夙愿已清 提交于 2019-12-10 10:57:58
问题 In response to a security advisory (see http://cxf.apache.org/note-on-cve-2011-1096.html) regarding the RSA v1.5 key transport algorithm, both CXF and WSS4J projects have disallowed use of all related algorithms by default. They have however supplied a configuration tag "ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM" which should re-allow these algorithms (see https://ws.apache.org/wss4j/config.html) Our problem is getting these frameworks (JBossWS / CXF / WSS4J) to accept/use this configuration

Allow the RSA v1.5 Key Transport Algorithm for WildFly / JBossWS / CXF / WSS4J stack

为君一笑 提交于 2019-12-06 11:58:43
In response to a security advisory (see http://cxf.apache.org/note-on-cve-2011-1096.html ) regarding the RSA v1.5 key transport algorithm, both CXF and WSS4J projects have disallowed use of all related algorithms by default. They have however supplied a configuration tag "ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM" which should re-allow these algorithms (see https://ws.apache.org/wss4j/config.html ) Our problem is getting these frameworks (JBossWS / CXF / WSS4J) to accept/use this configuration setting. We have tried using: jboss-webservice.xml custom CXF interceptor (setting the param after CXF

UsernameToken WS-Security with Apache CXF Annotations (WSS4J)

给你一囗甜甜゛ 提交于 2019-12-06 03:19:58
问题 I'm trying to create a "java first" webservice that will use plain and simple UsernameToken WS-Security. I've attempted to follow the examples from CXF. When I query my wsdl I see no mention of anything ws-security related. I'm using CXF 2.7.5 and I'm trying to do everything with annotations. The following is my failed attempt: SampleService.java: import java.util.ArrayList; import java.util.Date; import javax.jws.WebParam; import javax.jws.WebMethod; import javax.jws.WebService; import javax

UsernameToken WS-Security with Apache CXF Annotations (WSS4J)

南楼画角 提交于 2019-12-04 07:59:37
I'm trying to create a "java first" webservice that will use plain and simple UsernameToken WS-Security. I've attempted to follow the examples from CXF. When I query my wsdl I see no mention of anything ws-security related. I'm using CXF 2.7.5 and I'm trying to do everything with annotations. The following is my failed attempt: SampleService.java: import java.util.ArrayList; import java.util.Date; import javax.jws.WebParam; import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import org.apache.cxf.annotations.EndpointProperties; import org.apache.cxf

SOAPFaultException “MustUnderstand headers (oasis-200401-wss-wssecurity-secext-1.0.xsd) are not understood”

十年热恋 提交于 2019-12-03 11:19:06
问题 I try to get information from web service that uses PasswordText WSS type. Firstly, I test it using soapUI and successfully got data. Then I implemented authentication on Java, writing SecurityHandler: public final class SecurityHandler implements SOAPHandler<SOAPMessageContext> { ... @Override public boolean handleMessage(SOAPMessageContext messageContext) { boolean outInd = (Boolean) messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); if (outInd) { try { WSSecUsernameToken builder

Spring + SOAPExceptionImpl: Error during saving a multipart message

杀马特。学长 韩版系。学妹 提交于 2019-12-01 23:54:55
I have a spring web application with jsp pages that calls different web services and displays the results in a jsp page. The spring web application has username/login spring security attached to it. I am adding a call to a web service that handles security. For the WebServiceGateway, I added a security interceptor. (See below) <bean id="securityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"> <property name="securementActions" value="UsernameToken Timestamp" /> <property name="securementUsername" value="Bert" /> <property name="securementPassword" value

cxf + wss4j + maven NoSuchMethod error

送分小仙女□ 提交于 2019-12-01 03:30:34
trying to use the cxf+wss4j using maven. Created both the service and client without any compilation issues. The service runs fine in tomcat. Issue: When I run the client code, I get "java.lang.NoSuchMethodError: org.apache.xml.security.utils.I18n.init(Ljava/util/ResourceBundle;)V". This class is in xmlsec jar which comes along with cxf distribution. pom.xml for service project: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion

IRS Soap Fault - Invalid WS Security Header

泄露秘密 提交于 2019-11-28 10:37:29
I am trying to send a Soap Request to IRS and facing the same error like others in this group - 'Invalid WS Security Header'. can someone guide me with a sample Soap Request? One more question is - as part of the Enrollment process, we submitted our X509 certificate(public key) to IRS website which will be used to authenticate/decrypt your message digests. Which certificate file did you upload for this process? We are really stuck with this error for days now. Appreciate any help on this. I have seen 2 questions on this topic, but there are no helping answers. I am assuming this is for ACA Air

Spring + SOAPExceptionImpl: Error during saving a multipart message

半城伤御伤魂 提交于 2019-11-28 10:11:46
问题 I have a spring web application with jsp pages that calls different web services and displays the results in a jsp page. The spring web application has username/login spring security attached to it. I am adding a call to a web service that handles security. For the WebServiceGateway, I added a security interceptor. (See below) <bean id="securityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"> <property name="securementActions" value="UsernameToken