public class SimpleDecryptionTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private Key |
encKey |
private org.opensaml.xmlsec.encryption.support.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.xmlsec.encryption.support.KeyEncryptionParameters |
kekParams |
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
kekResolver |
private String |
kekURI |
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
keyResolver |
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 algoritm 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 algoritm in use.
|
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 org.opensaml.xmlsec.encryption.support.DataEncryptionParameters encParams
private org.opensaml.xmlsec.encryption.EncryptedData encryptedData
private org.opensaml.xmlsec.encryption.EncryptedData encryptedContent
private String kekURI
private org.opensaml.xmlsec.encryption.support.KeyEncryptionParameters kekParams
private org.opensaml.xmlsec.encryption.EncryptedKey encryptedKey
private String targetFile
private Document targetDOM
private SignableSimpleXMLObject targetObject
public void testEncryptedKey()
public void testEncryptedElement()
public void testEncryptedDataAlgorithmBlacklistFail()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedDataAlgorithmWhitelistFail()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedDataAlgorithmWhitelistPass()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedKeyAlgorithmBlacklistFail()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedKeyAlgorithmWhitelistFail()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedKeyAlgorithmWhitelistPass()
throws org.opensaml.xmlsec.encryption.support.DecryptionException
org.opensaml.xmlsec.encryption.support.DecryptionExceptionpublic void testEncryptedElementWithEncryptedKeyInline()
public void testErrorNoResolvers()
public void testErrorInvalidDataDecryptionKey()
throws NoSuchAlgorithmException,
NoSuchProviderException,
KeyException
public void testErrorInvalidKeyDecryptionKey()
throws NoSuchAlgorithmException,
NoSuchProviderException
public void testEncryptedContent()
Copyright © 1999–2014. All rights reserved.