org.apache.rampart.conversation
Class Util

java.lang.Object
  extended byorg.apache.rampart.conversation.Util

public class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static org.apache.ws.security.components.crypto.Crypto getCryptoInstace(ConversationConfiguration config)
          Returns the crypto instance of this configuration.
static void processRSTR(org.apache.axiom.om.OMElement rstr, ConversationConfiguration config)
           
static void resgisterContext(java.lang.String identifier, ConversationConfiguration config)
          This registers the security context mapping ?e context identifier to the wsa:Action/soapAction or the service address, depending on the scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getCryptoInstace

public static org.apache.ws.security.components.crypto.Crypto getCryptoInstace(ConversationConfiguration config)
                                                                        throws RampartException
Returns the crypto instance of this configuration. If one is not availabale then it will try to create a Crypto instance using available configuration information and will set it as the Crypto instance of the configuration.

Parameters:
config -
Returns:
The crypto instance of this configuration
Throws:
RahasException
RampartException

processRSTR

public static void processRSTR(org.apache.axiom.om.OMElement rstr,
                               ConversationConfiguration config)
                        throws java.lang.Exception
Throws:
java.lang.Exception

resgisterContext

public static void resgisterContext(java.lang.String identifier,
                                    ConversationConfiguration config)
                             throws RampartException
This registers the security context mapping ?e context identifier to the wsa:Action/soapAction or the service address, depending on the scope.

Parameters:
identifier - The security context identifier
config - The ConversationConfiguration instance
Throws:
RampartException - If scope is "operation" and the wsa:Action is not available. If scope is "service" and the wsa:To is missing.


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.