/** * Get a ReplayCache instance. It first checks to see whether caching has been explicitly * enabled or disabled via the booleanKey argument. If it has been set to false then no * replay caching is done (for this booleanKey). If it has not been specified, then caching * is enabled only if we are not the initiator of the exchange. If it has been specified, then * caching is enabled. * * It tries to get an instance of ReplayCache via the instanceKey argument from a * contextual property, and failing that the message exchange. If it can't find any, then it * defaults to using an EH-Cache instance and stores that on the message exchange. */ protected ReplayCache getReplayCache( SoapMessage message, String booleanKey, String instanceKey ) { return WSS4JUtils.getReplayCache(message, booleanKey, instanceKey); }
/** * Get a ReplayCache instance. It first checks to see whether caching has been explicitly * enabled or disabled via the booleanKey argument. If it has been set to false then no * replay caching is done (for this booleanKey). If it has not been specified, then caching * is enabled only if we are not the initiator of the exchange. If it has been specified, then * caching is enabled. * * It tries to get an instance of ReplayCache via the instanceKey argument from a * contextual property, and failing that the message exchange. If it can't find any, then it * defaults to using an EH-Cache instance and stores that on the message exchange. */ protected ReplayCache getReplayCache( SoapMessage message, String booleanKey, String instanceKey ) { return WSS4JUtils.getReplayCache(message, booleanKey, instanceKey); }
nonceCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_NONCE_CACHE, SecurityConstants.NONCE_CACHE_INSTANCE ); timestampCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_TIMESTAMP_CACHE, SecurityConstants.TIMESTAMP_CACHE_INSTANCE ); samlCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_SAML_ONE_TIME_USE_CACHE, SecurityConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE
nonceCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_NONCE_CACHE, SecurityConstants.NONCE_CACHE_INSTANCE ); timestampCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_TIMESTAMP_CACHE, SecurityConstants.TIMESTAMP_CACHE_INSTANCE ); samlCache = WSS4JUtils.getReplayCache( msg, SecurityConstants.ENABLE_SAML_ONE_TIME_USE_CACHE, SecurityConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE
WSS4JUtils.getReplayCache( message, SecurityConstants.ENABLE_NONCE_CACHE, SecurityConstants.NONCE_CACHE_INSTANCE );
WSS4JUtils.getReplayCache( message, SecurityConstants.ENABLE_NONCE_CACHE, SecurityConstants.NONCE_CACHE_INSTANCE );