|
||||||||||
| 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.WSSecSignature
org.apache.ws.security.saml.WSSecSignatureSAML
public class WSSecSignatureSAML
| Field Summary |
|---|
| Fields inherited from class org.apache.ws.security.message.WSSecSignature |
|---|
bstToken, canonAlgo, certUri, document, keyInfo, keyInfoUri, secRef, sig, sigAlgo, signatureValue, strUri, usernameToken, useSingleCert, wsDocInfo |
| Fields inherited from class org.apache.ws.security.message.WSSecBase |
|---|
doDebug, keyIdentifierType, parts, password, user, wssConfig |
| Constructor Summary | |
|---|---|
WSSecSignatureSAML()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addReferencesToSign(Vector references,
WSSecHeader secHeader)
This method adds references to the Signature. |
Document |
build(Document doc,
Crypto uCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto iCrypto,
String iKeyName,
String iKeyPW,
WSSecHeader secHeader)
Builds a signed soap envelope with SAML token. |
void |
computeSignature()
Compute the Signature over the references. |
void |
prepare(Document doc,
Crypto uCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto iCrypto,
String iKeyName,
String iKeyPW,
WSSecHeader secHeader)
Initialize a WSSec SAML Signature. |
void |
prependSAMLElementsToHeader(WSSecHeader secHeader)
Prepend the SAML elements to the elements already in the Security header. |
| Methods inherited from class org.apache.ws.security.message.WSSecBase |
|---|
getKeyIdentifierType, setBodyID, 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 WSSecSignatureSAML()
| Method Detail |
|---|
public Document build(Document doc,
Crypto uCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto iCrypto,
String iKeyName,
String iKeyPW,
WSSecHeader secHeader)
throws WSSecurityException
wsse:Signature
doc - The unsigned SOAP envelope as DocumentuCrypto - The user's Crypto instanceassertion - the complete SAML assertioniCrypto - An instance of the Crypto API to handle keystore SAML token
issuer and to generate certificatesiKeyName - Private key to use in case of "sender-Vouches"iKeyPW - Password for issuer private keysecHeader - The Security header
Document
WSSecurityException
public void prepare(Document doc,
Crypto uCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto iCrypto,
String iKeyName,
String iKeyPW,
WSSecHeader secHeader)
throws WSSecurityException
prependSignatureElementToHeader() method.
doc - The SOAP envelope as DocumentuCrypto - The user's Crypto instanceassertion - the complete SAML assertioniCrypto - An instance of the Crypto API to handle keystore SAML token
issuer and to generate certificatesiKeyName - Private key to use in case of "sender-Vouches"iKeyPW - Password for issuer private keysecHeader - The Security header
WSSecurityExceptionpublic void prependSAMLElementsToHeader(WSSecHeader secHeader)
prepare(). This
allows to insert the SAML elements at any position in the Security
header.
This methods first prepends the SAML security reference if mode is
senderVouches, then the SAML token itself,
secHeader - The security header that holds the BST element.
public void addReferencesToSign(Vector references,
WSSecHeader secHeader)
throws WSSecurityException
computeSignature(). This method can be called several
times to add references as required. addReferencesToSign()
can be called anytime after prepare.
addReferencesToSign in class WSSecSignaturereferences - A vector containing WSEncryptionPart objects
that define the parts to sign.secHeader - Used to compute namespaces to be inserted by
InclusiveNamespaces to be WSI compliant.
WSSecurityException
public void computeSignature()
throws WSSecurityException
addReferencesToSign().
computeSignature in class WSSecSignatureWSSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||