|
||||||||||
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
public class WSSignEnvelope
Signs a SOAP envelope according to WS Specification, X509 profile, and adds the signature data.
Field Summary | |
---|---|
protected String |
canonAlgo
|
protected 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()
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. |
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 String sigAlgo
protected String canonAlgo
protected WSSAddUsernameToken usernameToken
protected byte[] signatureValue
Constructor Detail |
---|
public WSSignEnvelope()
WSSecSignature.WSSecSignature()
public WSSignEnvelope(String actor)
WSSecSignature.WSSecSignature()
and WSSecHeader
for actor specification.
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 falseMethod Detail |
---|
public 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
certificates
Document
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |