org.apache.rampart
Class RampartMessageData

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

public class RampartMessageData
extends Object


Field Summary
static String CANCEL_REQUEST
           
static String KEY_ISSUER_ADDRESS
          Key to hold the address of the issuer in the msg ctx.
static String KEY_RAMPART_POLICY
          Axis2 parameter name to be used in the client's axis2 xml
static String KEY_SCT_ISSUER_POLICY
           
static String KEY_WSSC_VERSION
          Key to hold the WS-SecConv version
static String KEY_WST_VERSION
          Key to hold the WS-Trust version
static String SCT_ID
           
 
Constructor Summary
RampartMessageData(org.apache.axis2.context.MessageContext msgCtx, boolean sender)
           
 
Method Summary
static String createPolicyKey(String service, QName operation)
           
 org.apache.ws.security.WSSConfig getConfig()
           
 ClassLoader getCustomClassLoader()
           
 Document getDocument()
           
 String getIssuedEncryptionTokenId()
           
 String getIssuedSignatureTokenId()
           
 org.apache.axis2.context.MessageContext getMsgContext()
           
static String getOperationPolicyKey(org.apache.axis2.context.MessageContext msgCtx)
           
 RampartPolicyData getPolicyData()
           
 String getSecConvTokenId()
           
 int getSecConvVersion()
           
 org.apache.ws.security.message.WSSecHeader getSecHeader()
           
 org.apache.neethi.Policy getServicePolicy()
           
static String getServicePolicyKey(org.apache.axis2.context.MessageContext msgCtx)
           
 org.apache.ws.security.SOAPConstants getSoapConstants()
           
 String getTimestampId()
           
 int getTimeToLive()
           
 TokenStorage getTokenStorage()
           
 int getWstVersion()
           
 boolean isClientSide()
           
 void setConfig(org.apache.ws.security.WSSConfig config)
           
 void setDocument(Document document)
           
 void setIssuedEncryptionTokenId(String issuedEncryptionTokenId)
           
 void setIssuedSignatureTokenId(String issuedSignatureTokenId)
           
 void setMsgContext(org.apache.axis2.context.MessageContext msgContext)
           
 void setPolicyData(RampartPolicyData policyData)
           
 void setSecConvTokenId(String secConvTokenId)
           
 void setSecHeader(org.apache.ws.security.message.WSSecHeader secHeader)
           
 void setServicePolicy(org.apache.neethi.Policy servicePolicy)
           
 void setTimestampId(String timestampId)
           
 void setTimeToLive(int timeToLive)
           
 void setTokenStorage(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 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 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 String KEY_WST_VERSION
Key to hold the WS-Trust version

See Also:
Constant Field Values

KEY_WSSC_VERSION

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

See Also:
Constant Field Values

KEY_SCT_ISSUER_POLICY

public static final String KEY_SCT_ISSUER_POLICY
See Also:
Constant Field Values

CANCEL_REQUEST

public static final String CANCEL_REQUEST
See Also:
Constant Field Values

SCT_ID

public static final 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 Document getDocument()
Returns:
Returns the document.

setDocument

public void setDocument(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 String getIssuedEncryptionTokenId()
Returns:
Returns the issuedEncryptionTokenId.

setIssuedEncryptionTokenId

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

getIssuedSignatureTokenId

public String getIssuedSignatureTokenId()
Returns:
Returns the issuedSignatureTokenId.

setIssuedSignatureTokenId

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

getSecConvTokenId

public String getSecConvTokenId()
Returns:
Returns the secConvTokenId.

setSecConvTokenId

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

getTokenStorage

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

setTokenStorage

public void setTokenStorage(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.

getOperationPolicyKey

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

getServicePolicyKey

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

createPolicyKey

public static String createPolicyKey(String service,
                                     QName operation)

getTimestampId

public String getTimestampId()
Returns:
Returns the timestampId.

setTimestampId

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

isClientSide

public boolean isClientSide()
Returns:
Returns the isClientSide.

getCustomClassLoader

public ClassLoader getCustomClassLoader()

getSoapConstants

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