You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Elvedin Sinanović <el...@informica.ba> on 2021/06/10 13:29:38 UTC

How to change Username token Time to live parameter

Hello,

I'm trying to extend the time to live of a SOAP message with UsernameToken in the security header from 5 minutes to at least 10. 
In my research so far I have found out that I need to change the parameter "ws-security.usernametoken.timeToLive",
and maybe also "ws-security.usernametoken.futureTimeToLive".

But I don't know which file I need to change in my project. The project uses WS-SecurityPolicy-based policy,
the option with UsernameToken
with timestamp, nonce and password hash. 
I just need to know which file I need to change and the exact syntax I need to use to change the parameter to the value I need.
The web-service is hosted on wildfly-10.0.0.Final web server.

This is a list of configuration files in my project:

 - server.properties (main/java folder)

      - Tried using : "org.apache.cxf.ws.security.usernametoken.timeToLive=600"

 - server-endpoint-config (WEB-INF folder)

      - Tried using : 

    "

      <property>

        <property-name>ws-security.usernametoken.timeToLive</property-name>

        <property-value>600</property-value>

      </property>

    " 


 - Service.wsdl (WEB-INF folder)

 - Schema.xsd (WEB-INF folder)

 - jboss-deployment-structure.xml (WEB-INF folder)

 - web.xml (WEB-INF folder)

 - module.xml (wildfly/modules folder)

 - service.properties (wildfly/modules folder)

If anyone can help me with this issue, I would be really grateful. 


Best regards, 

Elvedin Sinanović.