}
protected void configureReplayCaches(RequestData reqData, int doAction, SoapMessage msg)
throws WSSecurityException {
if (isNonceCacheRequired(doAction, msg)) {
ReplayCache nonceCache =
getReplayCache(
msg, SecurityConstants.ENABLE_NONCE_CACHE, SecurityConstants.NONCE_CACHE_INSTANCE
);
reqData.setNonceReplayCache(nonceCache);
}
if (isTimestampCacheRequired(doAction, msg)) {
ReplayCache timestampCache =
getReplayCache(
msg, SecurityConstants.ENABLE_TIMESTAMP_CACHE, SecurityConstants.TIMESTAMP_CACHE_INSTANCE
);
reqData.setTimestampReplayCache(timestampCache);
}
if (isSamlCacheRequired(doAction, msg)) {
ReplayCache samlCache =
getReplayCache(
msg, SecurityConstants.ENABLE_SAML_ONE_TIME_USE_CACHE,
SecurityConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE
);
reqData.setSamlOneTimeUseReplayCache(samlCache);