org.apache.ws.sandbox.security.trust
Class STSManager

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.STSManager

public class STSManager
extends java.lang.Object

Author:
Malinda Kaushalye

The main objective of STSManager is to work as a decision making component in the server side. It decides to whom this request must be handed over, and to carry out the task it uses one RequestResolver and one RequestInfo object. This analogous to the real world the Manager, Clerk and the Report scenario, where (STS)Manager orders clerk(RequestResolver ) to resolve a certain request and handover a report (RequestInfo ) about the request. Depending on the RequestInfo STSManager decides the worker class. The worker class can be an Issuer, Validator or a Renewer. Each STS must define its Issuer, Validator and Renewer class names in the server-config.wsdd file. STSServerHandler will read it and give to the STSManager as a hash table. STSManager will load the appropriate worker class and give the response and request documents for further processing.


Constructor Summary
STSManager(java.util.Hashtable hashOps)
           
 
Method Summary
 org.w3c.dom.Document handleRequest(org.w3c.dom.Document req, org.w3c.dom.Document res)
          Handle the request and build the Response Envelope

Handle the request and build the Response Envelope

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STSManager

public STSManager(java.util.Hashtable hashOps)
Parameters:
hashOps - set of parameters coming from STSServerHandler.
Method Detail

handleRequest

public org.w3c.dom.Document handleRequest(org.w3c.dom.Document req,
                                          org.w3c.dom.Document res)
                                   throws WSTrustException
Handle the request and build the Response Envelope

Handle the request and build the Response Envelope

Parameters:
req - request message envelop as a DOM Document
res - response message envelop as a DOM Document
Returns:
modified response message envelop as a DOM Document Note : (may not need to use since response message envelop is passed as a reference)
Throws:
WSTrustException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.