org.apache.ws.sandbox.security.trust2
Class WSAddTokenRequest
java.lang.Object
org.apache.ws.sandbox.security.trust2.WSAddTokenRequest
- public class WSAddTokenRequest
- extends java.lang.Object
- Author:
- ddelvecc
A class for adding a WS-Trust RequestSecurityToken element to a SOAP envelope (an XML document).
Method Summary |
void |
addAction()
Adds the standard Action element corresponding to the RequestType specified in the RequestSecurityToken message being used. |
void |
addAction(java.net.URI action)
Adds a custom Action element to the SOAP header. |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc)
Adds a new RequestSecurityToken to a soap envelope. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSAddTokenRequest
public WSAddTokenRequest(RequestSecurityToken tokenRequest)
addAction
public void addAction()
throws NoRequestType
- Adds the standard Action element corresponding to the RequestType specified in the RequestSecurityToken message being used.
If the request type is non-standard (not Issue, Renew, Validate), the Action URI added will be the same as the RequestType URI.
- Throws:
NoRequestType
addAction
public void addAction(java.net.URI action)
- Adds a custom Action element to the SOAP header. See WS-Addressing specs for more details.
- Parameters:
action
- The action URI to add.
build
public org.w3c.dom.Document build(org.w3c.dom.Document doc)
throws org.w3c.dom.DOMException,
TrustException
- Adds a new
RequestSecurityToken
to a soap envelope.
- Parameters:
doc
- The SOAP enevlope as W3C document
- Returns:
- Document with RequestSecurityToken added
- Throws:
org.w3c.dom.DOMException
- NoRequestType NoSoapBody
TrustException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004-2008 Apache Web Services. All Rights Reserved.