Java Doc for ProcessingContext.java in  » 6.0-JDK-Modules-com.sun » xws-security » com » sun » xml » wss » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » xws security » com.sun.xml.wss 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.wss.ProcessingContext

All known Subclasses:   com.sun.xml.wss.impl.ProcessingContextImpl,
ProcessingContext
public class ProcessingContext implements SecurityProcessingContext(Code)
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
  • The SOAP Message to be operated upon
  • The Message direction (incoming or outgoing)
  • The security policy to be applied by XWS-Security on the message
  • A randomly generated Message-Identifier that can be used for request-response correlation, by a CallbackHandler, the handles DynamicPolicyCallback
  • A list of properties associated with the calling Application Runtime, that can be used to make Dynamic Policy decisions.
  • A concrete implementation of the SecurityEnvironment interface OR a CallbackHandler


Field Summary
final public static  StringOPERATION_RESOLVER
    
 CallbackHandlercallbackHandler
    
 intconfigType
    
 StaticPolicyContextcontext
    
 SecurityEnvironmentenvironmentHandler
    
 booleaninBoundMessage
    
 StringmessageIdentifier
    
protected  Mapproperties
    
protected  SecurableSoapMessagesecureMessage
    
protected  MessageLayoutsecurityHeaderLayout
    
 SecurityPolicysecurityPolicy
    

Constructor Summary
public  ProcessingContext()
    
public  ProcessingContext(StaticPolicyContext context, SecurityPolicy securityPolicy, SOAPMessage message)
    

Method Summary
public static  voidcopy(Map p1, Map p2)
    
public  voidcopy(ProcessingContext ctx1, ProcessingContext ctx2)
    
public  voidcopy(SecurityProcessingContext ctx1, SecurityProcessingContext ctx2)
    
public  intgetConfigType()
    
public  MapgetExtraneousProperties()
    
public  ObjectgetExtraneousProperty(String name)
    
public  CallbackHandlergetHandler()
    
public  StringgetMessageIdentifier()
    
public  StaticPolicyContextgetPolicyContext()
    
public  SOAPMessagegetSOAPMessage()
    
protected  SecurableSoapMessagegetSecureMessage()
    
public  SecurityEnvironmentgetSecurityEnvironment()
    
public  MessageLayoutgetSecurityHeaderLayout()
    
public  SecurityPolicygetSecurityPolicy()
    
public  voidisInboundMessage(boolean inBound)
    
public  booleanisInboundMessage()
    
public  voidremoveExtraneousProperty(String name)
    
public  voidreset()
    
public  booleanretainSecurityHeader()
    
public  voidretainSecurityHeader(boolean arg)
    
public  voidsetConfigType(int type)
    
public  voidsetExtraneousProperty(String name, Object value)
    
public  voidsetHandler(CallbackHandler handler)
    
public  voidsetMessageIdentifier(String identifier)
    
public  voidsetPolicyContext(StaticPolicyContext context)
     set the StaticPolicyContext for this ProcessingContext.
public  voidsetSOAPMessage(SOAPMessage message)
     set the SOAP Message into the ProcessingContext.
protected  voidsetSecureMessage(SecurableSoapMessage msg)
    
public  voidsetSecurityEnvironment(SecurityEnvironment handler)
    
public  voidsetSecurityHeaderLayout(MessageLayout layout)
    
public  voidsetSecurityPolicy(SecurityPolicy securityPolicy)
    

Field Detail
OPERATION_RESOLVER
final public static String OPERATION_RESOLVER(Code)



callbackHandler
CallbackHandler callbackHandler(Code)



configType
int configType(Code)



context
StaticPolicyContext context(Code)



environmentHandler
SecurityEnvironment environmentHandler(Code)



inBoundMessage
boolean inBoundMessage(Code)



messageIdentifier
String messageIdentifier(Code)



properties
protected Map properties(Code)



secureMessage
protected SecurableSoapMessage secureMessage(Code)



securityHeaderLayout
protected MessageLayout securityHeaderLayout(Code)



securityPolicy
SecurityPolicy securityPolicy(Code)




Constructor Detail
ProcessingContext
public ProcessingContext()(Code)
Default constructor



ProcessingContext
public ProcessingContext(StaticPolicyContext context, SecurityPolicy securityPolicy, SOAPMessage message) throws XWSSecurityException(Code)
Constructor
Parameters:
  context - the static policy context for this request
Parameters:
  securityPolicy - the SecurityPolicy to be applied for this request
Parameters:
  message - the SOAPMessage
throws:
  XWSSecurityException - if there was an error in creating the ProcessingContext




Method Detail
copy
public static void copy(Map p1, Map p2)(Code)



copy
public void copy(ProcessingContext ctx1, ProcessingContext ctx2) throws XWSSecurityException(Code)
copy operator
Parameters:
  ctx1 - the ProcessingContext to which to copy
Parameters:
  ctx2 - the ProcessingContext from which to copy
throws:
  XWSSecurityException - if there was an error during the copy operation



copy
public void copy(SecurityProcessingContext ctx1, SecurityProcessingContext ctx2) throws XWSSecurityException(Code)



getConfigType
public int getConfigType()(Code)
This method is used for internal purposes



getExtraneousProperties
public Map getExtraneousProperties()(Code)
Properties extraneously defined by XWSS runtime - can contain application's runtime context (like JAXRPCContext etc) Map of extraneous properties



getExtraneousProperty
public Object getExtraneousProperty(String name)(Code)
the value for the named extraneous property.



getHandler
public CallbackHandler getHandler()(Code)
the CallbackHandler set for the context



getMessageIdentifier
public String getMessageIdentifier()(Code)
message identifier for the Message in the context



getPolicyContext
public StaticPolicyContext getPolicyContext()(Code)
StaticPolicyContext associated with this ProcessingContext, null otherwise



getSOAPMessage
public SOAPMessage getSOAPMessage()(Code)
the SOAPMessage from the context



getSecureMessage
protected SecurableSoapMessage getSecureMessage()(Code)



getSecurityEnvironment
public SecurityEnvironment getSecurityEnvironment()(Code)
The SecurityEnvironment Handler set for the context



getSecurityHeaderLayout
public MessageLayout getSecurityHeaderLayout()(Code)



getSecurityPolicy
public SecurityPolicy getSecurityPolicy()(Code)
SecurityPolicy for this context



isInboundMessage
public void isInboundMessage(boolean inBound)(Code)
set the message flow direction (to true if inbound, false if outbound)
Parameters:
  inBound - message flow direction



isInboundMessage
public boolean isInboundMessage()(Code)
message flow direction, true if incoming, false otherwise



removeExtraneousProperty
public void removeExtraneousProperty(String name)(Code)
remove the named extraneous property if present
Parameters:
  name - the Extraneous Property to be removed



reset
public void reset()(Code)
This method is used for internal purposes



retainSecurityHeader
public boolean retainSecurityHeader()(Code)



retainSecurityHeader
public void retainSecurityHeader(boolean arg)(Code)



setConfigType
public void setConfigType(int type)(Code)
This method is used for internal purposes



setExtraneousProperty
public void setExtraneousProperty(String name, Object value)(Code)
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)
Parameters:
  name - the property name
Parameters:
  value - the property value



setHandler
public void setHandler(CallbackHandler handler)(Code)
set the CallbackHandler for the context
Parameters:
  handler - The CallbackHandler



setMessageIdentifier
public void setMessageIdentifier(String identifier)(Code)
Allow for message identifier to be generated externally
Parameters:
  identifier - the Message Identifier value



setPolicyContext
public void setPolicyContext(StaticPolicyContext context)(Code)
set the StaticPolicyContext for this ProcessingContext.
Parameters:
  context - StaticPolicyContext for this context



setSOAPMessage
public void setSOAPMessage(SOAPMessage message) throws XWSSecurityException(Code)
set the SOAP Message into the ProcessingContext.
Parameters:
  message - SOAPMessage
throws:
  XWSSecurityException - if there was an error in setting the SOAPMessage



setSecureMessage
protected void setSecureMessage(SecurableSoapMessage msg)(Code)



setSecurityEnvironment
public void setSecurityEnvironment(SecurityEnvironment handler)(Code)
set the SecurityEnvironment Handler for the context
Parameters:
  handler - The SecurityEnvironment Handler



setSecurityHeaderLayout
public void setSecurityHeaderLayout(MessageLayout layout)(Code)



setSecurityPolicy
public void setSecurityPolicy(SecurityPolicy securityPolicy) throws XWSSecurityException(Code)
set the SecurityPolicy for the context
Parameters:
  securityPolicy - SecurityPolicy
throws:
  XWSSecurityException - if the securityPolicy is of invalid type



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.