org.apache.ws.security.saml
Class WSSignSAMLEnvelope
java.lang.Object
org.apache.ws.security.message.WSBaseMessage
org.apache.ws.security.message.WSSignEnvelope
org.apache.ws.security.saml.WSSignSAMLEnvelope
public class WSSignSAMLEnvelope
- extends WSSignEnvelope
|
Method Summary |
Document |
build(Document doc,
Crypto userCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto issuerCrypto,
String issuerKeyName,
String issuerKeyPW)
Deprecated. replaced by
WSSecSignatureSAML.build(Document, Crypto, SAMLAssertion, Crypto, String, String, WSSecHeader) |
| Methods inherited from class org.apache.ws.security.message.WSSignEnvelope |
build, createSTRParameter, getInclusivePrefixes, getInclusivePrefixes, getSigCanonicalization, getSignatureAlgorithm, getSignatureValue, isUseSingleCertificate, setSigCanonicalization, setSignatureAlgorithm, setUsernameToken, setUseSingleCertificate |
| 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 |
WSSignSAMLEnvelope
public WSSignSAMLEnvelope()
- Deprecated. replaced by
WSSecSignatureSAML.WSSecSignatureSAML()
- Constructor.
WSSignSAMLEnvelope
public WSSignSAMLEnvelope(String actor,
boolean mu)
- Deprecated. replaced by
WSSecSignatureSAML.WSSecSignatureSAML() and
WSSecHeader for actor and mustunderstand
specification.
- Constructor.
- Parameters:
actor - The actor name of the wsse:Security headermu - Set mustUnderstand to true or false
build
public Document build(Document doc,
Crypto userCrypto,
org.opensaml.SAMLAssertion assertion,
Crypto issuerCrypto,
String issuerKeyName,
String issuerKeyPW)
throws WSSecurityException
- Deprecated. replaced by
WSSecSignatureSAML.build(Document, Crypto, SAMLAssertion, Crypto, String, String, WSSecHeader)
- Builds a signed soap envelope with SAML token. The method first gets
an appropriate security header. According to the defined parameters for
certificate handling the signature elements are constructed and inserted
into the
wsse:Signature
- Parameters:
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
- Returns:
- A signed SOAP envelope as
Document
- Throws:
WSSecurityException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.