Package org.apache.wss4j.dom.message
Class WSSecSignatureConfirmation
java.lang.Object
org.apache.wss4j.dom.message.WSSecBase
org.apache.wss4j.dom.message.WSSecSignatureConfirmation
Builds a WS SignatureConfirmation and inserts it into the SOAP Envelope.
-
Field Summary
Fields inherited from class org.apache.wss4j.dom.message.WSSecBase
addWSUNamespace, attachmentCallbackHandler, callbackLookup, expandXopInclude, keyIdentifierType, password, storeBytesInAttachment, user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(byte[] sigVal) Adds a newSignatureConfirmationto a soap envelope.getId()Get the id generated duringprepare().Get the SignatureConfirmation element generated duringprepare().voidprepare()Creates a SignatureConfimation element.voidPrepends the SignatureConfirmation element to the elements already in the Security header.voidsetSignatureValue(byte[] signatureValue) Set the Signature value to store in this SignatureConfirmation.Methods inherited from class org.apache.wss4j.dom.message.WSSecBase
clean, getDocument, getIdAllocator, getKeyIdentifierType, getParts, getSecurityHeader, getWsDocInfo, isExpandXopInclude, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setExpandXopInclude, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsDocInfo, setWsuId
-
Constructor Details
-
WSSecSignatureConfirmation
-
WSSecSignatureConfirmation
-
-
Method Details
-
setSignatureValue
public void setSignatureValue(byte[] signatureValue) Set the Signature value to store in this SignatureConfirmation.- Parameters:
signatureValue- The Signature value to store in the SignatureConfirmation element
-
prepare
public void prepare()Creates a SignatureConfimation element. The method prepares and initializes a WSSec SignatureConfirmation structure after the relevant information was set. Before callingprepare()the filedsignatureValuemust be set -
prependToHeader
public void prependToHeader()Prepends the SignatureConfirmation element to the elements already in the Security header. The method can be called any time afterprepare(). This allows to insert the SignatureConfirmation element at any position in the Security header. -
build
Adds a newSignatureConfirmationto a soap envelope. A completeSignatureConfirmationis constructed and added to thewsse:Securityheader.- Parameters:
sigVal- the Signature value. This will be the content of the "Value" attribute.- Returns:
- Document with SignatureConfirmation added
-
getId
Get the id generated duringprepare(). Returns the the value of wsu:Id attribute of this SignatureConfirmation.- Returns:
- Return the wsu:Id of this token or null if
prepareToken()was not called before.
-
getSignatureConfirmationElement
Get the SignatureConfirmation element generated duringprepare().- Returns:
- Return the SignatureConfirmation element or null if
prepare()was not called before.
-