org.apache.rampart
Class RampartMessageData

java.lang.Object
  extended byorg.apache.rampart.RampartMessageData

public class RampartMessageData
extends java.lang.Object


Field Summary
static java.lang.String CANCEL_REQUEST
           
static java.lang.String KEY_ISSUER_ADDRESS
          Key to hold the address of the issuer in the msg ctx.
static java.lang.String KEY_RAMPART_POLICY
          Axis2 parameter name to be used in the client's axis2 xml
static java.lang.String KEY_SCT_ISSUER_POLICY
           
static java.lang.String KEY_WSSC_VERSION
          Key to hold the WS-SecConv version
static java.lang.String KEY_WST_VERSION
          Key to hold the WS-Trust version
static java.lang.String SCT_ID
           
 
Constructor Summary
RampartMessageData(org.apache.axis2.context.MessageContext msgCtx, boolean sender)
           
 
Method Summary
static java.lang.String createPolicyKey(java.lang.String service, javax.xml.namespace.QName operation, java.lang.String msg)
           
 org.apache.ws.security.WSSConfig getConfig()
           
 java.lang.ClassLoader getCustomClassLoader()
           
 org.w3c.dom.Document getDocument()
           
 java.lang.String getIssuedEncryptionTokenId()
           
 java.lang.String getIssuedSignatureTokenId()
           
static java.lang.String getMessagePolicyKey(org.apache.axis2.context.MessageContext msgCtx)
           
 org.apache.axis2.context.MessageContext getMsgContext()
           
static java.lang.String getOperationPolicyKey(org.apache.axis2.context.MessageContext msgCtx)
           
 RampartPolicyData getPolicyData()
           
 java.lang.String getSecConvTokenId()
           
 int getSecConvVersion()
           
 org.apache.ws.security.message.WSSecHeader getSecHeader()
           
 org.apache.neethi.Policy getServicePolicy()
           
static java.lang.String getServicePolicyKey(org.apache.axis2.context.MessageContext msgCtx)
           
 org.apache.ws.security.SOAPConstants getSoapConstants()
           
 java.lang.String getTimestampId()
           
 int getTimeToLive()
           
 org.apache.rahas.TokenStorage getTokenStorage()
           
 int getWstVersion()
           
 boolean isInitiator()
           
 void setConfig(org.apache.ws.security.WSSConfig config)
           
 void setDocument(org.w3c.dom.Document document)
           
 void setIssuedEncryptionTokenId(java.lang.String issuedEncryptionTokenId)
           
 void setIssuedSignatureTokenId(java.lang.String issuedSignatureTokenId)
           
 void setMsgContext(org.apache.axis2.context.MessageContext msgContext)
           
 void setPolicyData(RampartPolicyData policyData)
           
 void setSecConvTokenId(java.lang.String secConvTokenId)
           
 void setSecHeader(org.apache.ws.security.message.WSSecHeader secHeader)
           
 void setServicePolicy(org.apache.neethi.Policy servicePolicy)
           
 void setTimestampId(java.lang.String timestampId)
           
 void setTimeToLive(int timeToLive)
           
 void setTokenStorage(org.apache.rahas.TokenStorage tokenStorage)
           
 void setWstVersion(int wstVerion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_RAMPART_POLICY

public static final java.lang.String KEY_RAMPART_POLICY
Axis2 parameter name to be used in the client's axis2 xml

See Also:
Constant Field Values

KEY_ISSUER_ADDRESS

public static final java.lang.String KEY_ISSUER_ADDRESS
Key to hold the address of the issuer in the msg ctx.

See Also:
Constant Field Values

KEY_WST_VERSION

public static final java.lang.String KEY_WST_VERSION
Key to hold the WS-Trust version

See Also:
Constant Field Values

KEY_WSSC_VERSION

public static final java.lang.String KEY_WSSC_VERSION
Key to hold the WS-SecConv version

See Also:
Constant Field Values

KEY_SCT_ISSUER_POLICY

public static final java.lang.String KEY_SCT_ISSUER_POLICY
See Also:
Constant Field Values

CANCEL_REQUEST

public static final java.lang.String CANCEL_REQUEST
See Also:
Constant Field Values

SCT_ID

public static final java.lang.String SCT_ID
See Also:
Constant Field Values
Constructor Detail

RampartMessageData

public RampartMessageData(org.apache.axis2.context.MessageContext msgCtx,
                          boolean sender)
                   throws RampartException
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns:
Returns the document.

setDocument

public void setDocument(org.w3c.dom.Document document)
Parameters:
document - The document to set.

getTimeToLive

public int getTimeToLive()
Returns:
Returns the timeToLive.

setTimeToLive

public void setTimeToLive(int timeToLive)
Parameters:
timeToLive - The timeToLive to set.

getConfig

public org.apache.ws.security.WSSConfig getConfig()
Returns:
Returns the config.

setConfig

public void setConfig(org.apache.ws.security.WSSConfig config)
Parameters:
config - The config to set.

getMsgContext

public org.apache.axis2.context.MessageContext getMsgContext()
Returns:
Returns the msgContext.

setMsgContext

public void setMsgContext(org.apache.axis2.context.MessageContext msgContext)
Parameters:
msgContext - The msgContext to set.

getPolicyData

public RampartPolicyData getPolicyData()
Returns:
Returns the policyData.

setPolicyData

public void setPolicyData(RampartPolicyData policyData)
                   throws RampartException
Parameters:
policyData - The policyData to set.
Throws:
RampartException

getSecHeader

public org.apache.ws.security.message.WSSecHeader getSecHeader()
Returns:
Returns the secHeader.

setSecHeader

public void setSecHeader(org.apache.ws.security.message.WSSecHeader secHeader)
Parameters:
secHeader - The secHeader to set.

getIssuedEncryptionTokenId

public java.lang.String getIssuedEncryptionTokenId()
Returns:
Returns the issuedEncryptionTokenId.

setIssuedEncryptionTokenId

public void setIssuedEncryptionTokenId(java.lang.String issuedEncryptionTokenId)
Parameters:
issuedEncryptionTokenId - The issuedEncryptionTokenId to set.

getIssuedSignatureTokenId

public java.lang.String getIssuedSignatureTokenId()
Returns:
Returns the issuedSignatureTokenId.

setIssuedSignatureTokenId

public void setIssuedSignatureTokenId(java.lang.String issuedSignatureTokenId)
Parameters:
issuedSignatureTokenId - The issuedSignatureTokenId to set.

getSecConvTokenId

public java.lang.String getSecConvTokenId()
Returns:
Returns the secConvTokenId.

setSecConvTokenId

public void setSecConvTokenId(java.lang.String secConvTokenId)
Parameters:
secConvTokenId - The secConvTokenId to set.

getTokenStorage

public org.apache.rahas.TokenStorage getTokenStorage()
                                              throws RampartException
Returns:
Returns the tokenStorage.
Throws:
RampartException

setTokenStorage

public void setTokenStorage(org.apache.rahas.TokenStorage tokenStorage)
Parameters:
tokenStorage - The tokenStorage to set.

getWstVersion

public int getWstVersion()
Returns:
Returns the wstVerion.

setWstVersion

public void setWstVersion(int wstVerion)
Parameters:
wstVerion - The wstVerion to set.

getSecConvVersion

public int getSecConvVersion()
Returns:
Returns the secConvVersion.

getServicePolicy

public org.apache.neethi.Policy getServicePolicy()
Returns:
Returns the servicePolicy.

setServicePolicy

public void setServicePolicy(org.apache.neethi.Policy servicePolicy)
Parameters:
servicePolicy - The servicePolicy to set.

getMessagePolicyKey

public static java.lang.String getMessagePolicyKey(org.apache.axis2.context.MessageContext msgCtx)

getOperationPolicyKey

public static java.lang.String getOperationPolicyKey(org.apache.axis2.context.MessageContext msgCtx)
Parameters:
msgCtx -
Returns:
The key to store/pickup policy of an operation

getServicePolicyKey

public static java.lang.String getServicePolicyKey(org.apache.axis2.context.MessageContext msgCtx)

createPolicyKey

public static java.lang.String createPolicyKey(java.lang.String service,
                                               javax.xml.namespace.QName operation,
                                               java.lang.String msg)

getTimestampId

public java.lang.String getTimestampId()
Returns:
Returns the timestampId.

setTimestampId

public void setTimestampId(java.lang.String timestampId)
Parameters:
timestampId - The timestampId to set.

isInitiator

public boolean isInitiator()
Returns:
Returns the isClientSide.

getCustomClassLoader

public java.lang.ClassLoader getCustomClassLoader()

getSoapConstants

public org.apache.ws.security.SOAPConstants getSoapConstants()


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