org.apache.ws.sandbox.security.conversation
Class ConversationEngine

java.lang.Object
  extended byorg.apache.ws.sandbox.security.conversation.ConversationEngine

public class ConversationEngine
extends java.lang.Object

Conversation Engine follows the basic structure of SecurityEngine

Author:
Dimuthu (muthulee@yahoo.com)

Field Summary
protected  java.util.HashMap configurator
           
protected static javax.xml.namespace.QName DERIVEDKEY_TOKEN
          wsc:DerivedKeyToken as defined in WS Secure Conversation specification.
protected static javax.xml.namespace.QName REFERENCE_LIST
          xenc:ReferenceList as defined by XML Encryption specification,
protected static javax.xml.namespace.QName REQUESTED_SECURITY_TOKEN_RESPONSE
          Refer WS secure Conversation specification
protected static javax.xml.namespace.QName SCT
           
protected static javax.xml.namespace.QName SCT_TOKEN
          wsc:SecurityContextToken as defined in WS Secure Conversation specification.
protected static javax.xml.namespace.QName SIGNATURE
          ds:Signature as defined by XML Signature specification.
protected  java.lang.String trustPropFile
           
protected  boolean verifyTrust
           
protected  WSSConfig wssConfig
           
 
Constructor Summary
ConversationEngine(java.util.HashMap config)
           
 
Method Summary
 ConvEngineResult handleRequestedSecurityTokenResponse(org.w3c.dom.Element eleSTRes, DerivedKeyCallbackHandler dkcbHandler, java.lang.String callback)
           
 ConvEngineResult handleSecurityTokenReference(SecurityTokenReference secRef2DkToken, DerivedKeyCallbackHandler dkcbHandler)
           
protected  java.util.Vector processConvHeader(org.w3c.dom.Element securityHeader, org.w3c.dom.Document doc, DerivedKeyCallbackHandler dkcbHandler, java.lang.String callback)
           
 java.util.Vector processSecConvHeader(org.w3c.dom.Document doc, java.lang.String actor, DerivedKeyCallbackHandler dkcb, java.lang.String callback)
          This method is extracted from org.apache.ws.security.SecurityEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DERIVEDKEY_TOKEN

protected static final javax.xml.namespace.QName DERIVEDKEY_TOKEN
wsc:DerivedKeyToken as defined in WS Secure Conversation specification.


SCT_TOKEN

protected static final javax.xml.namespace.QName SCT_TOKEN
wsc:SecurityContextToken as defined in WS Secure Conversation specification.


REQUESTED_SECURITY_TOKEN_RESPONSE

protected static final javax.xml.namespace.QName REQUESTED_SECURITY_TOKEN_RESPONSE
Refer WS secure Conversation specification


SIGNATURE

protected static final javax.xml.namespace.QName SIGNATURE
ds:Signature as defined by XML Signature specification.


REFERENCE_LIST

protected static final javax.xml.namespace.QName REFERENCE_LIST
xenc:ReferenceList as defined by XML Encryption specification,


SCT

protected static final javax.xml.namespace.QName SCT

configurator

protected java.util.HashMap configurator

trustPropFile

protected java.lang.String trustPropFile

verifyTrust

protected boolean verifyTrust

wssConfig

protected WSSConfig wssConfig
Constructor Detail

ConversationEngine

public ConversationEngine(java.util.HashMap config)
Method Detail

processSecConvHeader

public java.util.Vector processSecConvHeader(org.w3c.dom.Document doc,
                                             java.lang.String actor,
                                             DerivedKeyCallbackHandler dkcb,
                                             java.lang.String callback)
                                      throws ConversationException
This method is extracted from org.apache.ws.security.SecurityEngine

Parameters:
doc -
actor -
Returns:
Throws:
ConversationException

processConvHeader

protected java.util.Vector processConvHeader(org.w3c.dom.Element securityHeader,
                                             org.w3c.dom.Document doc,
                                             DerivedKeyCallbackHandler dkcbHandler,
                                             java.lang.String callback)
                                      throws ConversationException,
                                             WSSecurityException
Parameters:
doc -
dkcbHandler -
Throws:
ConversationException
WSSecurityException

handleRequestedSecurityTokenResponse

public ConvEngineResult handleRequestedSecurityTokenResponse(org.w3c.dom.Element eleSTRes,
                                                             DerivedKeyCallbackHandler dkcbHandler,
                                                             java.lang.String callback)
                                                      throws ConversationException
Throws:
ConversationException

handleSecurityTokenReference

public ConvEngineResult handleSecurityTokenReference(SecurityTokenReference secRef2DkToken,
                                                     DerivedKeyCallbackHandler dkcbHandler)
                                              throws ConversationException
Throws:
ConversationException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.