public class WSSecSAMLToken extends WSSecBase
attachmentCallbackHandler, callbackLookup, expandXopInclude, keyIdentifierType, password, storeBytesInAttachment, user| Constructor and Description |
|---|
WSSecSAMLToken(Document doc) |
WSSecSAMLToken(WSSecHeader securityHeader) |
| Modifier and Type | Method and Description |
|---|---|
Document |
build(SamlAssertionWrapper samlAssertion)
Adds a new
SAMLAssertion to a soap envelope. |
Element |
getElement() |
String |
getId()
Get the id generated during
prepare(). |
void |
prepare(SamlAssertionWrapper samlAssertion)
Creates a SAML token.
|
void |
prependToHeader()
Prepends the SAML Assertion to the elements already in the
Security header.
|
getDocument, getIdAllocator, getKeyIdentifierType, getParts, getSecurityHeader, getWsDocInfo, isExpandXopInclude, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setExpandXopInclude, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsDocInfo, setWsuIdpublic WSSecSAMLToken(WSSecHeader securityHeader)
public WSSecSAMLToken(Document doc)
public void prepare(SamlAssertionWrapper samlAssertion)
prepare() all parameters such as user, password,
passwordType etc. must be set. A complete UsernameToken is
constructed.public void prependToHeader()
prepare().
This allows to insert the SAML assertion at any position in the
Security header.public Element getElement() throws WSSecurityException
WSSecurityExceptionpublic String getId()
prepare().
Returns the the value of wsu:Id attribute of this Timestamp.prepareToken()
was not called before.public Document build(SamlAssertionWrapper samlAssertion)
SAMLAssertion to a soap envelope.
A complete SAMLAssertion is added to the
wsse:Security header.samlAssertion - TODOCopyright © 2019 JBoss by Red Hat. All rights reserved.