Hi,

How can I clear saml2 token stored in service provider (before it expired)?
My service provider sent a Validate request to STS once. I would like the
service provider to re-send after some operations automatically. It seems I
have to clear the saml2 token somehow.

Here is my service descriptor

  <jaxws:endpoint 
        id="datastorage"
        implementor="#DataServicePortTypeImpl" 
        wsdlLocation="WEB-INF/wsdl/DataStorage.wsdl"
        address="/datastorage">

       <jaxws:properties>
          <entry key="ws-security.callback-handler"
value="service.ServiceKeystorePasswordCallback"/>
          <entry key="ws-security.signature.properties"
value="serviceKeystore.properties"/>
          <entry key="ws-security.ut.validator">
              <bean class="service.UTValidator"/>
          </entry>
          <entry key="ws-security.sts.client">
               <bean class="org.apache.cxf.ws.security.trust.STSClient">
                   <constructor-arg ref="cxf"/>
                   <property name="wsdlLocation"
value="WEB-INF/wsdl/STSService.wsdl"/>
                   <property name="serviceName"
value="{http://docs.oasis-open.org/ws-sx/ws-trust/200512/}SecurityTokenService";
/>
                   <property name="endpointName"
value="{http://docs.oasis-open.org/ws-sx/ws-trust/200512/}X509_Port"; />
                   <property name="tokenType" 
                      
value="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0"/>
                   <property name="properties">
                       <map>
                           <entry key="ws-security.signature.username"
value="myservicekey"/>
                           <entry key="ws-security.callback-handler"
value="service.ServiceKeystorePasswordCallback"/>
                           <entry key="ws-security.signature.properties"
value="serviceKeystore.properties"/>
                           <entry key="ws-security.encryption.properties"
value="serviceKeystore.properties"/>
                           <entry key="ws-security.encryption.username"
value="mystskey"/>
                       </map>
                   </property>
               </bean>            
          </entry> 
       </jaxws:properties>
       <jaxws:inInterceptors>
           <ref bean="authorizationInterceptor"/>
       </jaxws:inInterceptors>
    </jaxws:endpoint>


Thanks

Patcharee



--
View this message in context: 
http://cxf.547215.n5.nabble.com/clear-saml2-token-stored-in-wsp-tp5747218.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to