|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.ws.security.message.WSBaseMessage
org.apache.ws.security.message.WSSignEnvelope
Signs a SOAP envelope according to WS Specification, X509 profile, and adds the signature data.
| Field Summary | |
protected java.lang.String |
canonAlgo
|
protected java.lang.String |
sigAlgo
|
protected byte[] |
signatureValue
|
protected WSSAddUsernameToken |
usernameToken
|
protected boolean |
useSingleCert
|
| Fields inherited from class org.apache.ws.security.message.WSBaseMessage |
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig |
| Constructor Summary | |
WSSignEnvelope()
Constructor. |
|
WSSignEnvelope(java.lang.String actor)
Constructor. |
|
WSSignEnvelope(java.lang.String actor,
boolean mu)
Constructor. |
|
| Method Summary | |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
Crypto crypto)
Builds a signed soap envelope. |
protected org.w3c.dom.Element |
createSTRParameter(org.w3c.dom.Document doc)
|
protected java.util.Set |
getInclusivePrefixes(org.w3c.dom.Element target)
|
protected java.util.Set |
getInclusivePrefixes(org.w3c.dom.Element target,
boolean excludeVisible)
|
java.lang.String |
getSigCanonicalization()
Get the canonicalization method. |
java.lang.String |
getSignatureAlgorithm()
Get the name of the signature algorithm that is being used. |
byte[] |
getSignatureValue()
|
boolean |
isUseSingleCertificate()
Get the single cert flag. |
void |
setSigCanonicalization(java.lang.String algo)
Set the canonicalization method to use. |
void |
setSignatureAlgorithm(java.lang.String algo)
Set the name of the signature encryption algorithm to use. |
void |
setUsernameToken(WSSAddUsernameToken usernameToken)
|
void |
setUseSingleCertificate(boolean useSingleCert)
set the single cert flag. |
| Methods inherited from class org.apache.ws.security.message.WSBaseMessage |
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean useSingleCert
protected java.lang.String sigAlgo
protected java.lang.String canonAlgo
protected WSSAddUsernameToken usernameToken
protected byte[] signatureValue
| Constructor Detail |
public WSSignEnvelope()
public WSSignEnvelope(java.lang.String actor)
actor - The actor name of the wsse:Security header
public WSSignEnvelope(java.lang.String actor,
boolean mu)
actor - The actor name of the wsse:Security headermu - Set mustUnderstand to true or false| Method Detail |
public void setUseSingleCertificate(boolean useSingleCert)
useSingleCert - public boolean isUseSingleCertificate()
public void setSignatureAlgorithm(java.lang.String algo)
algo - Is the name of the signature algorithmWSConstants.RSA,
WSConstants.DSApublic java.lang.String getSignatureAlgorithm()
public void setSigCanonicalization(java.lang.String algo)
algo - Is the name of the signature algorithmWSConstants.C14N_OMIT_COMMENTS,
WSConstants.C14N_WITH_COMMENTS,
WSConstants.C14N_EXCL_OMIT_COMMENTS,
WSConstants.C14N_EXCL_WITH_COMMENTSpublic java.lang.String getSigCanonicalization()
public void setUsernameToken(WSSAddUsernameToken usernameToken)
usernameToken - The usernameToken to set.public byte[] getSignatureValue()
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
Crypto crypto)
throws WSSecurityException
wsse:Signature
doc - The unsigned SOAP envelope as Documentcrypto - An instance of the Crypto API to handle keystore and
certificates
Document
WSSecurityExceptionprotected org.w3c.dom.Element createSTRParameter(org.w3c.dom.Document doc)
protected java.util.Set getInclusivePrefixes(org.w3c.dom.Element target)
protected java.util.Set getInclusivePrefixes(org.w3c.dom.Element target,
boolean excludeVisible)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||