Hi Colm,

Thanks for the link. It is very helpful. Now I have pretty decent client
configuration to work with. Thanks again for your guidance.

Gina
On Fri, May 25, 2012 at 4:19 AM, Colm O hEigeartaigh <[email protected]>wrote:

> Hi Gina,
>
> > How does WSC knows which entry to pick up when to call STS vs WSP?
>
> Take a look at the following configuration for an example of this:
>
>
> http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/asymmetric/cxf-client.xml?view=markup
>
> <jaxws:client name="{
> http://www.example.org/contract/DoubleIt}DoubleItAsymmetricSAML1Port";
> createdFromAPI="true">
> <jaxws:properties>
>   ...
>     <entry key="ws-security.encryption.properties"
> value="clientKeystore.properties"/>
>    <entry key="ws-security.encryption.username" value="myservicekey"/>
>     <entry key="ws-security.sts.client">
>        <bean class="org.apache.cxf.ws.security.trust.STSClient">
>             ...
>            <property name="properties">
>                <map>
>                     <entry key="ws-security.encryption.properties"
> value="clientKeystore.properties"/>
>                    <entry key="ws-security.encryption.username"
> value="mystskey"/>
>                      ...
>
>
> Here you can see that the client is configuring "myservicekey" as the
> keystore alias for the WSP, and "mystskey" for the STSClient.
>
> Colm.

Reply via email to