Interface WSSCacheRepository


  • public interface WSSCacheRepository
    This inteface WSSCacheRepository stores 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 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.
      • saveMessageTimestamp

        void saveMessageTimestamp​(String messageID,
                                  Long timestamp,
                                  String wsp)
        Saves the message timestamp using the given messageID
        Parameters:
        messageID - the messageID used that is used to index.
        timestamp - the timestamp to be stored.
        wsp - the web services provider name