|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
| Field Summary | |
|---|---|
static String |
OPERATION_RESOLVER
|
protected Map |
properties
|
protected SecurableSoapMessage |
secureMessage
|
protected MessageLayout |
securityHeaderLayout
|
| Constructor Summary | |
|---|---|
ProcessingContext()
Default constructor |
|
ProcessingContext(StaticPolicyContext context,
SecurityPolicy securityPolicy,
SOAPMessage message)
Constructor |
|
| Method Summary | |
|---|---|
static void |
copy(Map p1,
Map p2)
|
void |
copy(ProcessingContext ctx1,
ProcessingContext ctx2)
copy operator |
void |
copy(SecurityProcessingContext ctx1,
SecurityProcessingContext ctx2)
copy operator |
int |
getConfigType()
This method is used for internal purposes |
Map |
getExtraneousProperties()
Properties extraneously defined by XWSS runtime - can contain application's runtime context (like JAXRPCContext etc) |
Object |
getExtraneousProperty(String name)
|
CallbackHandler |
getHandler()
|
String |
getMessageIdentifier()
|
StaticPolicyContext |
getPolicyContext()
|
protected SecurableSoapMessage |
getSecureMessage()
|
SecurityEnvironment |
getSecurityEnvironment()
|
MessageLayout |
getSecurityHeaderLayout()
|
SecurityPolicy |
getSecurityPolicy()
|
SOAPMessage |
getSOAPMessage()
|
boolean |
isClient()
|
void |
isClient(boolean isClient)
|
boolean |
isExpired()
|
void |
isExpired(boolean value)
|
boolean |
isInboundMessage()
|
void |
isInboundMessage(boolean inBound)
set the message flow direction (to true if inbound, false if outbound) |
void |
removeExtraneousProperty(String name)
remove the named extraneous property if present |
void |
reset()
This method is used for internal purposes |
boolean |
resetMustUnderstand()
|
void |
resetMustUnderstand(boolean b)
|
boolean |
retainSecurityHeader()
|
void |
retainSecurityHeader(boolean arg)
|
void |
setConfigType(int type)
This method is used for internal purposes |
void |
setExtraneousProperty(String name,
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(CallbackHandler handler)
set the CallbackHandler for the context |
void |
setMessageIdentifier(String identifier)
Allow for message identifier to be generated externally |
void |
setPolicyContext(StaticPolicyContext context)
set the StaticPolicyContext for this ProcessingContext. |
protected void |
setSecureMessage(SecurableSoapMessage msg)
|
void |
setSecurityEnvironment(SecurityEnvironment handler)
set the SecurityEnvironment Handler for the context |
void |
setSecurityHeaderLayout(MessageLayout layout)
|
void |
setSecurityPolicy(SecurityPolicy securityPolicy)
set the SecurityPolicy for the context |
void |
setSOAPMessage(SOAPMessage message)
set the SOAP Message into the ProcessingContext. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SecurableSoapMessage secureMessage
protected Map properties
protected MessageLayout securityHeaderLayout
public static final String OPERATION_RESOLVER
| Constructor Detail |
|---|
public ProcessingContext()
public ProcessingContext(StaticPolicyContext context,
SecurityPolicy securityPolicy,
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 ProcessingContext| Method Detail |
|---|
public void resetMustUnderstand(boolean b)
public boolean resetMustUnderstand()
public void setSecurityPolicy(SecurityPolicy securityPolicy)
throws XWSSecurityException
setSecurityPolicy in interface SecurityProcessingContextsecurityPolicy - SecurityPolicy
XWSSecurityException - if the securityPolicy is of invalid typepublic SecurityPolicy getSecurityPolicy()
getSecurityPolicy in interface SecurityProcessingContextpublic void setPolicyContext(StaticPolicyContext context)
setPolicyContext in interface SecurityProcessingContextcontext - StaticPolicyContext for this contextpublic StaticPolicyContext getPolicyContext()
getPolicyContext in interface SecurityProcessingContext
public void setSOAPMessage(SOAPMessage message)
throws XWSSecurityException
setSOAPMessage in interface SecurityProcessingContextmessage - SOAPMessage
XWSSecurityException - if there was an error in setting the SOAPMessagepublic SOAPMessage getSOAPMessage()
getSOAPMessage in interface SecurityProcessingContextpublic void setHandler(CallbackHandler handler)
setHandler in interface SecurityProcessingContexthandler - The CallbackHandlerpublic void setSecurityEnvironment(SecurityEnvironment handler)
setSecurityEnvironment in interface SecurityProcessingContexthandler - The SecurityEnvironment Handlerpublic CallbackHandler getHandler()
getHandler in interface SecurityProcessingContextpublic SecurityEnvironment getSecurityEnvironment()
getSecurityEnvironment in interface SecurityProcessingContextpublic Map getExtraneousProperties()
getExtraneousProperties in interface SecurityProcessingContextpublic void isInboundMessage(boolean inBound)
isInboundMessage in interface SecurityProcessingContextinBound - message flow directionpublic boolean isInboundMessage()
isInboundMessage in interface SecurityProcessingContextpublic void setMessageIdentifier(String identifier)
setMessageIdentifier in interface SecurityProcessingContextidentifier - the Message Identifier valuepublic String getMessageIdentifier()
getMessageIdentifier in interface SecurityProcessingContext
public void setExtraneousProperty(String name,
Object value)
setExtraneousProperty in interface SecurityProcessingContextname - the property namevalue - the property valuepublic Object getExtraneousProperty(String name)
getExtraneousProperty in interface SecurityProcessingContextpublic void removeExtraneousProperty(String name)
removeExtraneousProperty in interface SecurityProcessingContextname - the Extraneous Property to be removed
public static void copy(Map p1,
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()
reset in interface SecurityProcessingContextpublic int getConfigType()
getConfigType in interface SecurityProcessingContextpublic void setConfigType(int type)
setConfigType in interface SecurityProcessingContextprotected SecurableSoapMessage getSecureMessage()
protected void setSecureMessage(SecurableSoapMessage msg)
public void copy(SecurityProcessingContext ctx1,
SecurityProcessingContext ctx2)
throws XWSSecurityException
SecurityProcessingContext
copy in interface SecurityProcessingContextctx1 - the ProcessingContext to which to copyctx2 - the ProcessingContext from which to copy
XWSSecurityException - if there was an error during the copy operationpublic void setSecurityHeaderLayout(MessageLayout layout)
public MessageLayout getSecurityHeaderLayout()
public boolean retainSecurityHeader()
public void retainSecurityHeader(boolean arg)
public void isClient(boolean isClient)
public boolean isClient()
public boolean isExpired()
public void isExpired(boolean value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||