org.apache.ws.security.message
Class WSSAddSAMLToken

java.lang.Object
  extended byorg.apache.ws.security.message.WSBaseMessage
      extended byorg.apache.ws.security.message.WSSAddSAMLToken

public class WSSAddSAMLToken
extends WSBaseMessage

Builds a WS SAML Assertion and inserts it into the SOAP Envelope. Refer to the WS specification, SAML Token profile

Author:
Davanum Srinivas (dims@yahoo.com).

Field Summary
 
Fields inherited from class org.apache.ws.security.message.WSBaseMessage
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig
 
Constructor Summary
WSSAddSAMLToken()
          Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken()
WSSAddSAMLToken(java.lang.String actor)
          Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken() and WSSecHeader for actor specification.
WSSAddSAMLToken(java.lang.String actor, boolean mu)
          Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken() and WSSecHeader for actor and mustunderstand specification.
 
Method Summary
 org.w3c.dom.Document build(org.w3c.dom.Document doc, org.opensaml.SAMLAssertion assertion)
          Deprecated. replaced by WSSecSAMLToken.build(Document, SAMLAssertion, WSSecHeader)
 
Methods inherited from class org.apache.ws.security.message.WSBaseMessage
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSAddSAMLToken

public WSSAddSAMLToken()
Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken()

Constructor.


WSSAddSAMLToken

public WSSAddSAMLToken(java.lang.String actor)
Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken() and WSSecHeader for actor specification.

Constructor.

Parameters:
actor - the name of the actor of the wsse:Security header

WSSAddSAMLToken

public WSSAddSAMLToken(java.lang.String actor,
                       boolean mu)
Deprecated. replaced by WSSecSAMLToken.WSSecSAMLToken() and WSSecHeader for actor and mustunderstand specification.

Constructor.

Parameters:
actor - The name of the actor of the wsse:Security header
mu - Set mustUnderstand to true or false
Method Detail

build

public org.w3c.dom.Document build(org.w3c.dom.Document doc,
                                  org.opensaml.SAMLAssertion assertion)
Deprecated. replaced by WSSecSAMLToken.build(Document, SAMLAssertion, WSSecHeader)

Adds a new SAMLAssertion to a soap envelope.

A complete SAMLAssertion is added to the wsse:Security header.

Parameters:
doc - The SOAP enevlope as W3C document
assertion - TODO
Returns:
Document with UsernameToken added


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.