Apache CXF API

org.apache.cxf.ws.security.wss4j
Class WSS4JUtils

java.lang.Object
  extended by org.apache.cxf.ws.security.wss4j.WSS4JUtils

public final class WSS4JUtils
extends Object

Some common functionality that can be shared between the WSS4JInInterceptor and the UsernameTokenInterceptor.


Method Summary
static org.apache.wss4j.common.cache.ReplayCache getReplayCache(SoapMessage message, String booleanKey, String instanceKey)
          Get a ReplayCache instance.
static TokenStore getTokenStore(Message message)
           
static TokenStore getTokenStore(Message message, boolean create)
           
static String parseAndStoreStreamingSecurityToken(org.apache.xml.security.stax.securityToken.SecurityToken securityToken, Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReplayCache

public static org.apache.wss4j.common.cache.ReplayCache getReplayCache(SoapMessage message,
                                                                       String booleanKey,
                                                                       String 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.


getTokenStore

public static TokenStore getTokenStore(Message message)

getTokenStore

public static TokenStore getTokenStore(Message message,
                                       boolean create)

parseAndStoreStreamingSecurityToken

public static String parseAndStoreStreamingSecurityToken(org.apache.xml.security.stax.securityToken.SecurityToken securityToken,
                                                         Message message)
                                                  throws org.apache.xml.security.exceptions.XMLSecurityException
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

Apache CXF API

Apache CXF