public class SimpleDecryptionTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.security.credential.Credential |
encCred |
private Key |
encKey |
private DataEncryptionParameters |
encParams |
private org.opensaml.xmlsec.encryption.EncryptedData |
encryptedContent |
private org.opensaml.xmlsec.encryption.EncryptedData |
encryptedData |
private org.opensaml.xmlsec.encryption.EncryptedKey |
encryptedKey |
private String |
encURI |
private org.opensaml.security.credential.Credential |
kekCred |
private KeyEncryptionParameters |
kekParams |
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
kekResolver |
private String |
kekURI |
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
keyResolver |
private org.opensaml.security.SecurityProviderTestSupport |
providerSupport |
private Document |
targetDOM |
private String |
targetFile |
private SignableSimpleXMLObject |
targetObject |
| Constructor and Description |
|---|
SimpleDecryptionTest()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testEncryptedContent()
Test simple decryption of an EncryptedData object which is of type Content.
|
void |
testEncryptedDataAlgorithmBlacklistFail()
Test EncryptedData decryption which should fail due to blacklist validation.
|
void |
testEncryptedDataAlgorithmWhitelistFail()
Test EncryptedData decryption which should fail due to whitelist validation.
|
void |
testEncryptedDataAlgorithmWhitelistPass()
Test EncryptedData decryption which should pass the whitelist validation b/c the list specifies
the algorithm in use.
|
void |
testEncryptedElement()
Test simple decryption of an EncryptedData object which is of type Element.
|
void |
testEncryptedElementWithEncryptedKeyInline()
Test decryption of an EncryptedData object which is of type Element, where the decryption
key is found as an inline EncryptedKey within EncryptedData/KeyInfo.
|
void |
testEncryptedKey()
Test simple decryption of an EncryptedKey object.
|
void |
testEncryptedKeyAlgorithmBlacklistFail()
Test EncryptedKey decryption which should fail due to blacklist validation.
|
void |
testEncryptedKeyAlgorithmWhitelistFail()
Test EncryptedKey decryption which should fail due to whitelist validation.
|
void |
testEncryptedKeyAlgorithmWhitelistPass()
Test EncryptedKey decryption which should pass the whitelist validation b/c the list specifies
the algorithms in use.
|
void |
testEncryptedKeyDigestMethodBlacklistFail()
Test EncryptedKey decryption which should fail due to whitelist validation.
|
void |
testEncryptedKeyDigestMethodWhitelistFail()
Test EncryptedKey decryption which should fail due to whitelist validation.
|
void |
testEncryptedKeyMGFBlacklistFail()
Test EncryptedKey decryption which should fail due to whitelist validation.
|
void |
testEncryptedKeyMGFWhitelistFail()
Test EncryptedKey decryption which should fail due to whitelist validation.
|
void |
testErrorInvalidDataDecryptionKey()
Test error condition of invalid data decryption key.
|
void |
testErrorInvalidKeyDecryptionKey()
Test error condition of invalid key decryption key.
|
void |
testErrorNoResolvers()
Test error condition of no resolvers configured.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver keyResolver
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver kekResolver
private String encURI
private Key encKey
private DataEncryptionParameters encParams
private org.opensaml.xmlsec.encryption.EncryptedData encryptedData
private org.opensaml.xmlsec.encryption.EncryptedData encryptedContent
private org.opensaml.security.credential.Credential encCred
private String kekURI
private KeyEncryptionParameters kekParams
private org.opensaml.xmlsec.encryption.EncryptedKey encryptedKey
private org.opensaml.security.credential.Credential kekCred
private String targetFile
private Document targetDOM
private SignableSimpleXMLObject targetObject
private org.opensaml.security.SecurityProviderTestSupport providerSupport
public void testEncryptedKey()
public void testEncryptedElement()
public void testEncryptedDataAlgorithmBlacklistFail()
throws DecryptionException
DecryptionExceptionpublic void testEncryptedDataAlgorithmWhitelistFail()
throws DecryptionException
DecryptionExceptionpublic void testEncryptedDataAlgorithmWhitelistPass()
throws DecryptionException
DecryptionExceptionpublic void testEncryptedKeyAlgorithmBlacklistFail()
throws DecryptionException
DecryptionExceptionpublic void testEncryptedKeyDigestMethodBlacklistFail()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedKeyMGFBlacklistFail()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedKeyAlgorithmWhitelistFail()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedKeyDigestMethodWhitelistFail()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedKeyMGFWhitelistFail()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedKeyAlgorithmWhitelistPass()
throws DecryptionException,
EncryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException
DecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionEncryptionExceptionpublic void testEncryptedElementWithEncryptedKeyInline()
public void testErrorNoResolvers()
public void testErrorInvalidDataDecryptionKey()
throws NoSuchAlgorithmException,
NoSuchProviderException,
KeyException
public void testErrorInvalidKeyDecryptionKey()
throws NoSuchAlgorithmException,
NoSuchProviderException
public void testEncryptedContent()
Copyright © 1999–2015. All rights reserved.