|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.xml.wss.ProcessingContext
public class ProcessingContext
This class represents a Context that is used by the XWS-Security Runtime to apply/verify Security Policies on an Outgoing/Incoming SOAP Message. The context contains among other things
DynamicPolicyCallback
Constructor Summary | |
---|---|
ProcessingContext()
Default constructor |
|
ProcessingContext(StaticPolicyContext context,
SecurityPolicy securityPolicy,
javax.xml.soap.SOAPMessage message)
Constructor |
Method Summary | |
---|---|
static void |
copy(java.util.Map p1,
java.util.Map p2)
|
void |
copy(ProcessingContext ctx1,
ProcessingContext ctx2)
copy operator |
int |
getConfigType()
This method is used for internal purposes |
java.util.Map |
getExtraneousProperties()
Properties extraneously defined by XWSS runtime - can contain application's runtime context (like JAXRPCContext etc) |
java.lang.Object |
getExtraneousProperty(java.lang.String name)
|
javax.security.auth.callback.CallbackHandler |
getHandler()
|
java.lang.String |
getMessageIdentifier()
|
StaticPolicyContext |
getPolicyContext()
|
SecurityEnvironment |
getSecurityEnvironment()
|
SecurityPolicy |
getSecurityPolicy()
|
javax.xml.soap.SOAPMessage |
getSOAPMessage()
|
boolean |
isInboundMessage()
|
void |
isInboundMessage(boolean inBound)
set the message flow direction (to true if inbound, false if outbound) |
void |
removeExtraneousProperty(java.lang.String name)
remove the named extraneous property if present |
void |
reset()
This method is used for internal purposes |
void |
setConfigType(int type)
This method is used for internal purposes |
void |
setExtraneousProperty(java.lang.String name,
java.lang.Object value)
set the extraneous property into the context Extraneous Properties are properties extraneously defined by XWSS runtime and can contain application's runtime context (like JAXRPCContext etc) |
void |
setHandler(javax.security.auth.callback.CallbackHandler handler)
set the CallbackHandler for the context |
void |
setMessageIdentifier(java.lang.String identifier)
Allow for message identifier to be generated externally |
void |
setPolicyContext(StaticPolicyContext context)
set the StaticPolicyContext for this ProcessingContext. |
void |
setSecurityEnvironment(SecurityEnvironment handler)
set the SecurityEnvironment Handler for the context |
void |
setSecurityPolicy(SecurityPolicy securityPolicy)
set the SecurityPolicy for the context |
void |
setSOAPMessage(javax.xml.soap.SOAPMessage message)
set the SOAP Message into the ProcessingContext. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessingContext()
public ProcessingContext(StaticPolicyContext context, SecurityPolicy securityPolicy, javax.xml.soap.SOAPMessage message) throws XWSSecurityException
context
- the static policy context for this requestsecurityPolicy
- the SecurityPolicy to be applied for this requestmessage
- the SOAPMessage
XWSSecurityException
- if there was an error in creating the ProcessingContextMethod Detail |
---|
public void setSecurityPolicy(SecurityPolicy securityPolicy) throws XWSSecurityException
securityPolicy
- SecurityPolicy
XWSSecurityException
- if the securityPolicy is of invalid typepublic SecurityPolicy getSecurityPolicy()
public void setPolicyContext(StaticPolicyContext context)
context
- StaticPolicyContext for this contextpublic StaticPolicyContext getPolicyContext()
public void setSOAPMessage(javax.xml.soap.SOAPMessage message) throws XWSSecurityException
message
- SOAPMessage
XWSSecurityException
- if there was an error in setting the SOAPMessagepublic javax.xml.soap.SOAPMessage getSOAPMessage()
public void setHandler(javax.security.auth.callback.CallbackHandler handler)
handler
- The CallbackHandlerpublic void setSecurityEnvironment(SecurityEnvironment handler)
handler
- The SecurityEnvironment Handlerpublic javax.security.auth.callback.CallbackHandler getHandler()
public SecurityEnvironment getSecurityEnvironment()
public java.util.Map getExtraneousProperties()
public void isInboundMessage(boolean inBound)
inBound
- message flow directionpublic boolean isInboundMessage()
public void setMessageIdentifier(java.lang.String identifier)
identifier
- the Message Identifier valuepublic java.lang.String getMessageIdentifier()
public void setExtraneousProperty(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the property valuepublic java.lang.Object getExtraneousProperty(java.lang.String name)
public void removeExtraneousProperty(java.lang.String name)
name
- the Extraneous Property to be removedpublic static void copy(java.util.Map p1, java.util.Map p2)
public void copy(ProcessingContext ctx1, ProcessingContext ctx2) throws XWSSecurityException
ctx1
- the ProcessingContext to which to copyctx2
- the ProcessingContext from which to copy
XWSSecurityException
- if there was an error during the copy operationpublic void reset()
public int getConfigType()
public void setConfigType(int type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |