public class WSSecSAMLToken extends WSSecBase
attachmentCallbackHandler, callbackLookup, doDebug, keyIdentifierType, password, storeBytesInAttachment, user
Constructor and Description |
---|
WSSecSAMLToken() |
Modifier and Type | Method and Description |
---|---|
Document |
build(Document doc,
SamlAssertionWrapper samlAssertion,
WSSecHeader secHeader)
Adds a new
SAMLAssertion to a soap envelope. |
Element |
getElement() |
String |
getId()
Get the id generated during
prepare() . |
void |
prepare(Document doc,
SamlAssertionWrapper samlAssertion)
Creates a SAML token.
|
void |
prependToHeader(WSSecHeader secHeader)
Prepends the SAML Assertion to the elements already in the
Security header.
|
getIdAllocator, getKeyIdentifierType, getParts, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsuId
public void prepare(Document doc, SamlAssertionWrapper samlAssertion)
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 Element getElement() throws WSSecurityException
WSSecurityException
public String getId()
prepare()
.
Returns the the value of wsu:Id attribute of this Timestamp.prepareToken()
was not called before.public Document build(Document doc, SamlAssertionWrapper samlAssertion, WSSecHeader secHeader)
SAMLAssertion
to a soap envelope.
A complete SAMLAssertion
is added to the
wsse:Security
header.doc
- The SOAP envelope as W3C documentsamlAssertion
- TODOCopyright © 2016 JBoss by Red Hat. All rights reserved.