Hi Gina,

Yes your changes are correct - I have updated the STS config.

Colm.

On Tue, Jul 10, 2012 at 7:03 PM, Gina Choi <[email protected]> wrote:

> Thanks for quick fix. Both cxf-ut.xml and cxf-x509.xml are complaining
> about bean properties name when I enable them. So, I made following changes
> in cxf-ut.xml.
>
> 1. Commented out "encryptionName".
>
>     <bean id="utService"
>
>         class="org.apache.cxf.sts.service.StaticService">
>
>         <property name="endpoints" ref="utEndpoints"/>
>
>         <!--property name="encryptionName" value="myservicekey"/-->
>
>     </bean>
>
>
> 2. Changed signatureProperties to signaturePropertiesFile. Changed
> encryptionProperties to encryptionPropertiesFile like bellow.
>
>    <bean id="utSTSProperties"
>
>                      class="org.apache.cxf.sts.StaticSTSProperties">
>
>                                 <property name="signaturePropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="signatureUsername"
> value="mystskey"/>
>
>                                 <property name="callbackHandlerClass"
> value="org.apache.cxf.sts.war.PasswordCallbackHandler"/>
>
>                                 <property name="encryptionPropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="issuer"
> value="DoubleItSTSIssuer"/>
>
>     </bean>
>
>
> I also made similar changed on cxf-x509.xml like bellow. I don't know if
> this is right way to fix it, but at least it prevents exceptions.
>
>     <bean id="x509Service"
>
>         class="org.apache.cxf.sts.service.StaticService">
>
>         <property name="endpoints" ref="x509Endpoints"/>
>
>         <!--property name="encryptionName" value="myservicekey"/-->
>
>     </bean>
>
>
>
>                 <bean id="x509STSProperties"
>
>                      class="org.apache.cxf.sts.StaticSTSProperties">
>
>                                 <property name="signaturePropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="signatureUsername"
> value="mystskey"/>
>
>                                 <property name="callbackHandlerClass"
> value="org.apache.cxf.sts.war.PasswordCallbackHandler"/>
>
>                                 <property name="encryptionPropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="issuer"
> value="DoubleItSTSIssuer"/>
>
>     </bean>
>
>    <bean id="utSTSProperties"
>
>                      class="org.apache.cxf.sts.StaticSTSProperties">
>
>                                 <property name="signaturePropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="signatureUsername"
> value="mystskey"/>
>
>                                 <property name="callbackHandlerClass"
> value="org.apache.cxf.sts.war.PasswordCallbackHandler"/>
>
>                                 <property name="encryptionPropertiesFile"
> value="stsKeystore.properties"/>
>
>                                 <property name="issuer"
> value="DoubleItSTSIssuer"/>
>
>     </bean>
>
>
>
> Thanks.
>
> Gina
>
>
> On Tue, Jul 10, 2012 at 11:09 AM, Colm O hEigeartaigh <[email protected]
> > wrote:
>
>> There's a bug in the cxf-encrypted-ut.xml shipped with Fediz. I've merged
>> a
>> fix here:
>>
>> http://svn.apache.org/viewvc?view=revision&revision=1359717
>>
>> Colm.
>>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to