public class DecryptionPlusSigningTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private DataEncryptionParameters |
encParams |
private org.opensaml.saml.saml2.encryption.Encrypter |
encrypter |
private String |
encURI |
private KeyInfoCredentialResolver |
keyResolver |
private org.opensaml.security.credential.Credential |
signingCred |
| Constructor and Description |
|---|
DecryptionPlusSigningTest()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private Document |
getDOM(String filename)
Parse the XML file and return the DOM Document.
|
protected void |
setUp() |
void |
testEncryptedAssertionInResponse()
Test decryption of an EncryptedAssertion and validation of the signature on the enclosing Response.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate KeyInfoCredentialResolver keyResolver
private String encURI
private DataEncryptionParameters encParams
private org.opensaml.saml.saml2.encryption.Encrypter encrypter
private org.opensaml.security.credential.Credential signingCred
public void testEncryptedAssertionInResponse()
throws XMLParserException,
EncryptionException,
NoSuchAlgorithmException,
NoSuchProviderException,
org.opensaml.security.SecurityException,
org.opensaml.core.xml.io.MarshallingException,
SignatureException,
org.opensaml.core.xml.io.UnmarshallingException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLNoSuchProviderExceptionNoSuchAlgorithmExceptionorg.opensaml.security.SecurityExceptionorg.opensaml.core.xml.io.MarshallingExceptionSignatureExceptionorg.opensaml.core.xml.io.UnmarshallingExceptionprivate Document getDOM(String filename) throws XMLParserException
filename - file containing control XMLXMLParserException - if parser encounters an errorCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.