You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by semecxf <di...@gmail.com> on 2012/04/06 14:47:36 UTC

ws-security.encryption.username (problem with multiple users)

I have to ws policy for signing and encryption and each user to have his or
her certificate, but in configuring my service I need to specify a specific
user in ws-security.encryption.username.
Any idea how to handle multiple users with different certificates?

Here my service configuration, if I don't specify
ws-security.encryption.username, client call does not work.

<jaxws:endpoint id="servicews"
		implementor="ServiceWS"
		wsdlLocation="wsdl/servicews.wsdl" address="/servicews">
			<jaxws:features>
				<bean class="org.apache.cxf.feature.LoggingFeature" />
			</jaxws:features>
			
		 <jaxws:properties>
		      <entry key="ws-security.callback-handler"
value="ServiceCallbackHandler"/>
		       <entry key="ws-security.ut.validator"   value="UTValidator"/>
           		
           		 <entry key="ws-security.encryption.username" value="client"/>
           		 
           		 <entry key="ws-security.signature.username" value="server"/>
           		 <entry key="ws-security.signature.properties"
value="keys/serverKeystore.properties"/>
		         <entry key="ws-security.encryption.properties"
value="keys/serverKeystore.properties"/>
    		</jaxws:properties>
      
	</jaxws:endpoint>

--
View this message in context: http://cxf.547215.n5.nabble.com/ws-security-encryption-username-problem-with-multiple-users-tp5622674p5622674.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: ws-security.encryption.username (problem with multiple users)

Posted by semecxf <di...@gmail.com>.
I found the solution.
<entry key="ws-security.encryption.username" value="useReqSigCert"/>

--
View this message in context: http://cxf.547215.n5.nabble.com/ws-security-encryption-username-problem-with-multiple-users-tp5622674p5622845.html
Sent from the cxf-user mailing list archive at Nabble.com.