public class WSSignEnvelope extends WSBaseMessage
Modifier and Type | Field and Description |
---|---|
protected String |
canonAlgo |
protected String |
sigAlgo |
protected byte[] |
signatureValue |
protected WSSAddUsernameToken |
usernameToken |
protected boolean |
useSingleCert |
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig
Constructor and Description |
---|
WSSignEnvelope()
Deprecated.
replaced by
WSSecSignature.WSSecSignature() |
WSSignEnvelope(String actor)
Deprecated.
replaced by
WSSecSignature.WSSecSignature()
and WSSecHeader for actor specification. |
WSSignEnvelope(String actor,
boolean mu)
Deprecated.
replaced by
WSSecSignature.WSSecSignature()
and WSSecHeader for actor and mustunderstand
specification. |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
Crypto crypto)
Deprecated.
|
protected org.w3c.dom.Element |
createSTRParameter(org.w3c.dom.Document doc) |
protected Set |
getInclusivePrefixes(org.w3c.dom.Element target) |
protected Set |
getInclusivePrefixes(org.w3c.dom.Element target,
boolean excludeVisible) |
String |
getSigCanonicalization()
Deprecated.
replaced by
WSSecSignature.getSigCanonicalization() |
String |
getSignatureAlgorithm()
Deprecated.
replaced by
WSSecSignature.getSignatureAlgorithm() |
byte[] |
getSignatureValue()
Deprecated.
replaced by
WSSecSignature.getSignatureValue() |
boolean |
isUseSingleCertificate()
Deprecated.
replaced by
WSSecSignature.isUseSingleCertificate() |
void |
setSigCanonicalization(String algo)
Deprecated.
replaced by
WSSecSignature.setSigCanonicalization(String) |
void |
setSignatureAlgorithm(String algo)
Deprecated.
replaced by
WSSecSignature.setSignatureAlgorithm(String) |
void |
setUsernameToken(WSSAddUsernameToken usernameToken)
Deprecated.
|
void |
setUseSingleCertificate(boolean useSingleCert)
Deprecated.
replaced by
WSSecSignature.setUseSingleCertificate(boolean) |
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsConfig, setWsuId
protected boolean useSingleCert
protected String sigAlgo
protected String canonAlgo
protected WSSAddUsernameToken usernameToken
protected byte[] signatureValue
public WSSignEnvelope()
WSSecSignature.WSSecSignature()
public WSSignEnvelope(String actor)
actor
- The actor name of the wsse:Security
headerpublic WSSignEnvelope(String actor, boolean mu)
WSSecSignature.WSSecSignature()
and WSSecHeader
for actor and mustunderstand
specification.actor
- The actor name of the wsse:Security
headermu
- Set mustUnderstand
to true or falsepublic void setUseSingleCertificate(boolean useSingleCert)
WSSecSignature.setUseSingleCertificate(boolean)
useSingleCert
- public boolean isUseSingleCertificate()
WSSecSignature.isUseSingleCertificate()
public void setSignatureAlgorithm(String algo)
WSSecSignature.setSignatureAlgorithm(String)
algo
- Is the name of the signature algorithmWSConstants.RSA
,
WSConstants.DSA
public String getSignatureAlgorithm()
WSSecSignature.getSignatureAlgorithm()
public void setSigCanonicalization(String algo)
WSSecSignature.setSigCanonicalization(String)
algo
- Is the name of the signature algorithmWSConstants.C14N_OMIT_COMMENTS
,
WSConstants.C14N_WITH_COMMENTS
,
WSConstants.C14N_EXCL_OMIT_COMMENTS
,
WSConstants.C14N_EXCL_WITH_COMMENTS
public String getSigCanonicalization()
WSSecSignature.getSigCanonicalization()
public void setUsernameToken(WSSAddUsernameToken usernameToken)
WSSecSignature.setUsernameToken(WSSecUsernameToken)
usernameToken
- The usernameToken to set.public byte[] getSignatureValue()
WSSecSignature.getSignatureValue()
public org.w3c.dom.Document build(org.w3c.dom.Document doc, Crypto crypto) throws WSSecurityException
WSSecSignature.build(Document, Crypto, WSSecHeader)
wsse:Signature
doc
- The unsigned SOAP envelope as Document
crypto
- An instance of the Crypto API to handle keystore and
certificatesDocument
WSSecurityException
protected org.w3c.dom.Element createSTRParameter(org.w3c.dom.Document doc)
protected Set getInclusivePrefixes(org.w3c.dom.Element target)
protected Set getInclusivePrefixes(org.w3c.dom.Element target, boolean excludeVisible)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.