|
||||||||||
| 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 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. |
|
WSSignEnvelope(WSSConfig wssConfig,
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. |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
Crypto userCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto issuerCrypto,
java.lang.String issuerKeyName,
java.lang.String issuerKeyPW)
Builds a signed soap envelope with SAML token. |
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 If the algorithm is not set then RSA is default. |
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 If the algorithm is not set then Triple RSA is used. |
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, 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
| 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
public WSSignEnvelope(WSSConfig wssConfig,
java.lang.String actor,
boolean mu)
wssConfig - Configuration options for processing and building security headersactor - 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 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
WSSecurityException
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
Crypto userCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto issuerCrypto,
java.lang.String issuerKeyName,
java.lang.String issuerKeyPW)
throws WSSecurityException
wsse:Signature
doc - The unsigned SOAP envelope as Documentassertion - the complete SAML assertionissuerCrypto - An instance of the Crypto API to handle keystore SAML token
issuer and to generate certificatesissuerKeyName - Private key to use in case of "sender-Vouches"issuerKeyPW - Password for issuer private key
Document
WSSecurityExceptionprotected 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 | |||||||||