public class SimpleDecryptionTest
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 |
| Constructor and Description |
|---|
SimpleDecryptionTest()
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 |
testEncryptedAssertion()
Test decryption of an EncryptedAssertion.
|
void |
testEncryptedAssertionAsID()
Test decryption of an Assertion as an EncryptedID.
|
void |
testEncryptedAttribute()
Test decryption of an EncryptedAttribute.
|
void |
testEncryptedNameID()
Test decryption of an NameID as an EncryptedID.
|
void |
testEncryptedNewID()
Test decryption of an NewID as an NewEncryptedID.
|
void |
testErrorInvalidDataDecryptionKey()
Test error condition of invalid data decryption key.
|
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
public void testEncryptedAssertion()
throws XMLParserException,
EncryptionException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLpublic void testEncryptedAssertionAsID()
throws XMLParserException,
EncryptionException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLpublic void testEncryptedNameID()
throws XMLParserException,
EncryptionException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLpublic void testEncryptedNewID()
throws XMLParserException,
EncryptionException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLpublic void testEncryptedAttribute()
throws XMLParserException,
EncryptionException
XMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLpublic void testErrorInvalidDataDecryptionKey()
throws XMLParserException,
EncryptionException,
NoSuchAlgorithmException,
NoSuchProviderException,
KeyException
EncryptionExceptionXMLParserException - thrown if there is an error parsing the control XML fileEncryptionException - thrown if there is an error encrypting the control XMLNoSuchProviderException - security provider was invalidNoSuchAlgorithmException - security/key algorithm was invalidKeyExceptionprivate Document getDOM(String filename) throws XMLParserException
filename - file containing control XMLXMLParserException - if parser encounters an errorCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.