I am currently testing a web application deployed on IBM Websphere Application Server. I understand that I can set the LTPAToken timeout via the console configuration. However, is there any way I can retrieve the timeout duration or a listener in JAVA to indicate that the ltpatoken has expired?
You can get the token expiration time in your Java code like this (this will give you credential expiration time)
if you are interested in particular in ltpatoken, you need to extend it a bit (but probably credential will be enough for you):