|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.message.WSSecBase
org.apache.ws.security.message.WSSecSAMLToken
public class WSSecSAMLToken
Builds a WS SAML Assertion and inserts it into the SOAP Envelope. Refer to the WS specification, SAML Token profile
Field Summary |
---|
Fields inherited from class org.apache.ws.security.message.WSSecBase |
---|
doDebug, keyIdentifierType, parts, password, user, wssConfig |
Constructor Summary | |
---|---|
WSSecSAMLToken()
Constructor. |
Method Summary | |
---|---|
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
org.opensaml.SAMLAssertion assertion,
WSSecHeader secHeader)
Adds a new SAMLAssertion to a soap envelope. |
java.lang.String |
getId()
Get the id generated during prepare() . |
void |
prepare(org.w3c.dom.Document doc,
org.opensaml.SAMLAssertion assertion)
Creates a SAML token. |
void |
prependToHeader(WSSecHeader secHeader)
Prepends the SAML Assertion to the elements already in the Security header. |
Methods inherited from class org.apache.ws.security.message.WSSecBase |
---|
getKeyIdentifierType, setBodyID, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSSecSAMLToken()
Method Detail |
---|
public void prepare(org.w3c.dom.Document doc, org.opensaml.SAMLAssertion assertion)
prepare()
all parameters such as user, password,
passwordType etc. must be set. A complete UsernameToken
is
constructed.
doc
- The SOAP envelope as W3C documentpublic void prependToHeader(WSSecHeader secHeader)
prepare()
.
This allows to insert the SAML assertion at any position in the
Security header.
secHeader
- The security header that holds the Signature element.public java.lang.String getId()
prepare()
.
Returns the the value of wsu:Id attribute of this Timestamp.
prepareToken()
was not called before.public org.w3c.dom.Document build(org.w3c.dom.Document doc, org.opensaml.SAMLAssertion assertion, WSSecHeader secHeader)
SAMLAssertion
to a soap envelope.
A complete SAMLAssertion
is added to the
wsse:Security
header.
doc
- The SOAP envelope as W3C documentassertion
- TODO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |