ffang opened a new pull request, #3752: URL: https://github.com/apache/cxf/pull/3752
Reference-count the caches and cache managers that WS-Security, the JAX-RS token replay cache (which SAML SSO and the OAuth2 SAML bearer validator use), SAML SSO state, and OAuth2 obtain. Release each owner independently and preserve externally owned caches. Destroy a CXF-created cache when its last user releases it, and close a manager obtained for a CXF configuration URI when its last user releases it, so that its resources, such as a disk store lock, are freed for a redeployed application. Never close the provider's default manager, which the application may share. Enforce replay identifiers' absolute expiry through atomic entry processors. With Ehcache, evict each identifier at its own expiry, including when it is replaced; with other providers, bound the retention of identifiers that are not looked up again by the maximum replay-cache TTL. Give an expiry that is not in the future the default TTL, as EHCacheExpiry does. As identifiers are now held until their own expiry, report the maximum replay-cache TTL to WSS4J, so that a OneTimeUse assertion valid for up to that long is accepted. Cover shared cache and manager lifecycle, redeployment, expiry bounds and eviction, and concurrent insertion and replacement. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
