org.globus.wsrf.impl.security.authentication.wssec
Class WSSecurityUtil

java.lang.Object
  extended byorg.globus.wsrf.impl.security.authentication.wssec.WSSecurityUtil

public class WSSecurityUtil
extends Object


Constructor Summary
WSSecurityUtil()
           
 
Method Summary
static Element findFirstBodyElement(Document doc)
           
static Node getDirectChild(Node fNode, String localName, String namespace)
           
static Element getSecurityHeader(Document doc, String actor)
          Returns the first WS-Security header element for a given actor Only one WS-Security header is allowed for an actor.
static SOAPHeaderElement getSecurityHeader(SOAPEnvelope env, String actor)
          Returns first WS-Security header for a given actor.
static String setNamespace(Element element, String namespace, String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSecurityUtil

public WSSecurityUtil()
Method Detail

getSecurityHeader

public static SOAPHeaderElement getSecurityHeader(SOAPEnvelope env,
                                                  String actor)
                                           throws SOAPException
Returns first WS-Security header for a given actor. Only one WS-Security header is allowed for an actor.

Throws:
SOAPException

getSecurityHeader

public static Element getSecurityHeader(Document doc,
                                        String actor)
Returns the first WS-Security header element for a given actor Only one WS-Security header is allowed for an actor.


getDirectChild

public static Node getDirectChild(Node fNode,
                                  String localName,
                                  String namespace)

findFirstBodyElement

public static Element findFirstBodyElement(Document doc)

setNamespace

public static String setNamespace(Element element,
                                  String namespace,
                                  String prefix)


Copyright ? 1999-2003 University of Chicago and The University of Southern California. All rights reserved.