|
||||||||||
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.WSSecSignatureBase
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, c14nMethod, canonAlgo, certUri, customTokenId, customTokenValueType, document, keyInfo, keyInfoFactory, keyInfoUri, secRef, secretKey, sig, sigAlgo, signatureFactory, signatureValue, strUri, useSingleCert, wsDocInfo |
Fields inherited from class org.apache.ws.security.message.WSSecBase |
---|
callbackLookup, doDebug, keyIdentifierType, parts, password, user |
Constructor Summary | |
---|---|
WSSecSignatureSAML()
Constructor. |
|
WSSecSignatureSAML(WSSConfig config)
Constructor. |
Method Summary | |
---|---|
Document |
build(Document doc,
Crypto uCrypto,
AssertionWrapper assertion,
Crypto iCrypto,
String iKeyName,
String iKeyPW,
WSSecHeader secHeader)
Builds a signed soap envelope with SAML token. |
void |
computeSignature(List<javax.xml.crypto.dsig.Reference> referenceList,
WSSecHeader secHeader,
Element siblingElement)
Compute the Signature over the references. |
boolean |
isUseDirectReferenceToAssertion()
Return whether a Direct Reference is to be used to reference the assertion. |
void |
prepare(Document doc,
Crypto uCrypto,
AssertionWrapper 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. |
void |
setUseDirectReferenceToAssertion(boolean useDirectReferenceToAssertion)
Set whether a Direct Reference is to be used to reference the assertion. |
Methods inherited from class org.apache.ws.security.message.WSSecSignatureBase |
---|
addReferencesToSign, createSTRParameter, getInclusivePrefixes, getInclusivePrefixes |
Methods inherited from class org.apache.ws.security.message.WSSecBase |
---|
getKeyIdentifierType, getWsConfig, setBodyID, setCallbackLookup, 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()
public WSSecSignatureSAML(WSSConfig config)
Method Detail |
---|
public Document build(Document doc, Crypto uCrypto, AssertionWrapper assertion, Crypto iCrypto, String iKeyName, String iKeyPW, WSSecHeader secHeader) throws WSSecurityException
wsse:Signature
doc
- The unsigned SOAP envelope as Document
uCrypto
- 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, AssertionWrapper assertion, Crypto iCrypto, String iKeyName, String iKeyPW, WSSecHeader secHeader) throws WSSecurityException
prependSignatureElementToHeader()
method.
doc
- The SOAP envelope as Document
uCrypto
- 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
WSSecurityException
public 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 computeSignature(List<javax.xml.crypto.dsig.Reference> referenceList, WSSecHeader secHeader, Element siblingElement) throws WSSecurityException
addReferencesToSign()
.
WSSecurityException
public boolean isUseDirectReferenceToAssertion()
public void setUseDirectReferenceToAssertion(boolean useDirectReferenceToAssertion)
useDirectReferenceToAssertion
- whether a Direct Reference is to be used
to reference the assertion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |