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