Security Context : SecurityContext

SecurityContext
Class
Declaration
class com.tibco.amma.was.security.SecurityContext
  extends java.lang.Object
Purpose
Interface methods to access and forward security-related information associated with message exchanges.
Remarks
Programs do not create instances of SecurityContext. Instead, web server programs use its static methods to get information from existing message exchange objects, and transfer (forward) security context information to new outbound request messages.
SecurityContext.getAttributesFromJaxRPCContext
Method
Declaration
static Map<String,String> getAttributesFromJaxRPCContext(
    ServletEndpointContext servletEndptContext)
  throws IOException,SAXException
Purpose
Get user attributes from the security context in a servlet endpoint context object.
 
Copy the user attributes from the security context in this servlet endpoint context object.
See Also
For information about ServletEndpointContext, see java.sun.com/webservices/docs/1.5/api/javax/xml/rpc/server/ServletEndpointContext.html
SecurityContext.getRolesFromJaxRPCContext
Method
Declaration
static List<String> getRolesFromJaxRPCContext(
    ServletEndpointContext servletEndptContext)
  throws IOException,SAXException
Purpose
Get user roles from the security context in a servlet endpoint context object.
 
Copy the user roles from the security context in this servlet endpoint context object.
See Also
For information about ServletEndpointContext, see java.sun.com/webservices/docs/1.5/api/javax/xml/rpc/server/ServletEndpointContext.html
SecurityContext.setSecurityContextForJaxRPC
Method
Declaration
static void setSecurityContextForJaxRPC(
    Call call,
    ServletEndpointContext servletEndptContext)
  throws SOAPException
Purpose
Forward the security context object to another web service provider.
Remarks
This method copies the security context information from a servlet endpoint context object onto an outbound request message.
See Also
For information about ServletEndpointContext, see java.sun.com/webservices/docs/1.5/api/javax/xml/rpc/server/ServletEndpointContext.html
For information about JAX-RPC Call objects, see http://java.sun.com/j2ee/1.4/docs/api/javax/xml/rpc/Call.html
SecurityContext.getAttributesFromJaxWSContext
Method
Declaration
static Map<String,String> getAttributesFromJaxWSContext(
    WebServiceContext wsContext)
  throws IOException,SAXException
Purpose
Get user attributes from the security context in a web service context object.
 
See Also
For information about WebServiceContext, see java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceContext.html
SecurityContext.getRolesFromJaxWSContext
Method
Declaration
static List<String> getRolesFromJaxWSContext(
    WebServiceContext wsContext)
  throws IOException,SAXException
Purpose
Get user roles from the security context in a web service context object.
 
See Also
For information about WebServiceContext, see java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceContext.html
SecurityContext.setSecurityContextForJaxWS
Method
Declaration
static void setSecurityContextForJaxWS(
    SOAPMessage message,
    WebServiceContext wsContext)
  throws SOAPException
Purpose
Forward the security context object to another web service provider.
Remarks
This method copies the security context information from a web service context object onto an outbound request message.
Copy the security context to this outbound request message.
See Also
For information about WebServiceContext, see java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceContext.html