Package org.apache.ws.security.message
Class WSSecSignatureConfirmation
java.lang.Object
org.apache.ws.security.message.WSSecBase
org.apache.ws.security.message.WSSecSignatureConfirmation
Builds a WS SignatureConfirmation and inserts it into the SOAP Envelope.
- Author:
- Werner Dittmann (Werner.Dittmann@t-online.de).
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild
(Document doc, byte[] sigVal, WSSecHeader secHeader) Adds a newSignatureConfirmation
to a soap envelope.getId()
Get the id generated duringprepare()
.Get the SignatureConfirmation element generated duringprepare()
.void
Creates a SignatureConfimation element.void
prependToHeader
(WSSecHeader secHeader) 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.Methods inherited from class org.apache.ws.security.message.WSSecBase
getKeyIdentifierType, setBodyID, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId
-
Constructor Details
-
WSSecSignatureConfirmation
public WSSecSignatureConfirmation()Constructor.
-
-
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
Creates a SignatureConfimation element. The method prepares and initializes a WSSec SignatureConfirmation structure after the relevant information was set. Before callingprepare()
the filedsignatureValue
must be set- Parameters:
doc
- The SOAP enevlope as W3C document
-
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.- Parameters:
secHeader
- The security header that holds the Signature element.
-
build
Adds a newSignatureConfirmation
to a soap envelope. A completeSignatureConfirmation
is constructed and added to thewsse:Security
header.- Parameters:
doc
- The SOAP enevlope as W3C documentsigVal
- the Signature value. This will be the content of the "Value" attribute.secHeader
- The security header that holds the Signature element.- 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.
-