Author: coheigea
Date: Fri Mar 15 09:50:08 2013
New Revision: 1456847
URL: http://svn.apache.org/r1456847
Log:
Get a new SPNEGO token on expiry
Modified:
cxf/branches/wss4j2.0-port/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/SpnegoContextTokenOutInterceptor.java
Modified:
cxf/branches/wss4j2.0-port/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/SpnegoContextTokenOutInterceptor.java
URL:
http://svn.apache.org/viewvc/cxf/branches/wss4j2.0-port/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/SpnegoContextTokenOutInterceptor.java?rev=1456847&r1=1456846&r2=1456847&view=diff
==============================================================================
---
cxf/branches/wss4j2.0-port/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/SpnegoContextTokenOutInterceptor.java
(original)
+++
cxf/branches/wss4j2.0-port/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/SpnegoContextTokenOutInterceptor.java
Fri Mar 15 09:50:08 2013
@@ -62,7 +62,7 @@ class SpnegoContextTokenOutInterceptor e
if (tokId != null) {
tok =
NegotiationUtils.getTokenStore(message).getToken(tokId);
}
- if (tok == null) {
+ if (tok == null || !tok.isExpired()) {
tok = issueToken(message, aim);
}
if (tok != null) {