public class WSSecSignatureConfirmation extends WSSecBase
attachmentCallbackHandler, callbackLookup, expandXopInclude, keyIdentifierType, password, storeBytesInAttachment, user| Constructor and Description |
|---|
WSSecSignatureConfirmation(Document doc) |
WSSecSignatureConfirmation(WSSecHeader securityHeader) |
| Modifier and Type | Method and Description |
|---|---|
Document |
build(byte[] sigVal)
Adds a new
SignatureConfirmation to a soap envelope. |
String |
getId()
Get the id generated during
prepare(). |
Element |
getSignatureConfirmationElement()
Get the SignatureConfirmation element generated during
prepare(). |
void |
prepare()
Creates a SignatureConfimation element.
|
void |
prependToHeader()
Prepends the SignatureConfirmation element to the elements already in the
Security header.
|
void |
setSignatureValue(byte[] signatureValue)
Set the Signature value to store in this SignatureConfirmation.
|
getDocument, getIdAllocator, getKeyIdentifierType, getParts, getSecurityHeader, getWsDocInfo, isExpandXopInclude, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setExpandXopInclude, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsDocInfo, setWsuIdpublic WSSecSignatureConfirmation(WSSecHeader securityHeader)
public WSSecSignatureConfirmation(Document doc)
public void setSignatureValue(byte[] signatureValue)
signatureValue - The Signature value to store in the SignatureConfirmation elementpublic void prepare()
prepare() the
filed signatureValue must be setpublic void prependToHeader()
prepare().
This allows to insert the SignatureConfirmation element at any position in the
Security header.public Document build(byte[] sigVal)
SignatureConfirmation to a soap envelope.
A complete SignatureConfirmation is constructed and added
to the wsse:Security header.sigVal - the Signature value. This will be the content of the "Value" attribute.public String getId()
prepare().
Returns the the value of wsu:Id attribute of this SignatureConfirmation.prepareToken()
was not called before.public Element getSignatureConfirmationElement()
prepare().prepare()
was not called before.Copyright © 2019 JBoss by Red Hat. All rights reserved.