Interface WSSCacheRepository
-
public interface WSSCacheRepositoryThis intefaceWSSCacheRepositorystores the Web services security related cache information. This cache is primarily used to prevent wss security related replay attacks. This interface helps the ws-security deployers to store the state of the cache persistently.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongretrieveMessageTimestamp(String messageID, String wsp)Returns the message timestamp for a given messageID.SetretrieveUserTokenNonce(String timestamp, String wsp)Retrieves the stored user name token nonce cache.voidsaveMessageTimestamp(String messageID, Long timestamp, String wsp)Saves the message timestamp using the given messageIDvoidsaveUserTokenNonce(String timestamp, Set nonces, String wsp)Saves the user name token nonces for a given timestamp.
-
-
-
Method Detail
-
retrieveUserTokenNonce
Set retrieveUserTokenNonce(String timestamp, String wsp)
Retrieves the stored user name token nonce cache.- Parameters:
timestamp- timestamp is the key for the nonce cache.- Returns:
- the set of previous stored nonces for a given timestamp.
-
saveUserTokenNonce
void saveUserTokenNonce(String timestamp, Set nonces, String wsp)
Saves the user name token nonces for a given timestamp.- Parameters:
timestamp- the timestamp is the index for the cache.nonces- the set of nonces that must be stored.wsp- the web services provider name.
-
retrieveMessageTimestamp
Long retrieveMessageTimestamp(String messageID, String wsp)
Returns the message timestamp for a given messageID.- Parameters:
messageID- the messageID from the SOAP request.wsp- the web services provider name.- Returns:
- the message timestamp.
-
-