|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.message.WSSecBase
org.apache.ws.security.message.WSSecSignatureConfirmation
public class WSSecSignatureConfirmation
Builds a WS SignatureConfirmation and inserts it into the SOAP Envelope.
| Field Summary |
|---|
| Fields inherited from class org.apache.ws.security.message.WSSecBase |
|---|
callbackLookup, doDebug, keyIdentifierType, parts, password, user |
| Constructor Summary | |
|---|---|
WSSecSignatureConfirmation()
|
|
WSSecSignatureConfirmation(WSSConfig config)
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
byte[] sigVal,
WSSecHeader secHeader)
Adds a new SignatureConfirmation to a soap envelope. |
java.lang.String |
getId()
Get the id generated during prepare(). |
org.w3c.dom.Element |
getSignatureConfirmationElement()
Get the SignatureConfirmation element generated during prepare(). |
void |
prepare(org.w3c.dom.Document doc)
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, getWsConfig, setBodyID, setCallbackLookup, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSSecSignatureConfirmation()
public WSSecSignatureConfirmation(WSSConfig config)
| Method Detail |
|---|
public void setSignatureValue(byte[] signatureValue)
signatureValue - The Signature value to store in the SignatureConfirmation elementpublic void prepare(org.w3c.dom.Document doc)
prepare() the
filed signatureValue must be set
doc - The SOAP envelope as W3C documentpublic void prependToHeader(WSSecHeader secHeader)
prepare().
This allows to insert the SignatureConfirmation element at any position in the
Security header.
secHeader - The security header that holds the Signature element.
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
byte[] sigVal,
WSSecHeader secHeader)
SignatureConfirmation to a soap envelope.
A complete SignatureConfirmation is constructed and added
to the wsse:Security header.
doc - The SOAP envelope as W3C documentsigVal - the Signature value. This will be the content of the "Value" attribute.secHeader - The security header that holds the Signature element.
public java.lang.String getId()
prepare().
Returns the the value of wsu:Id attribute of this SignatureConfirmation.
prepareToken()
was not called before.public org.w3c.dom.Element getSignatureConfirmationElement()
prepare().
prepare()
was not called before.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||