public class SimpleRetrievalMethodEncryptedKeyResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private SimpleRetrievalMethodEncryptedKeyResolver |
resolver
The resolver instance to be tested.
|
| Constructor and Description |
|---|
SimpleRetrievalMethodEncryptedKeyResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
private List<org.opensaml.xmlsec.encryption.EncryptedKey> |
generateList(org.opensaml.xmlsec.encryption.EncryptedData encData,
EncryptedKeyResolver ekResolver)
Resolve EncryptedKeys and put them in an ordered list.
|
private List<org.opensaml.xmlsec.encryption.EncryptedKey> |
getEncryptedKeys(SignableSimpleXMLObject sxo)
Extract all the EncryptedKey's from the SimpleXMLObject.
|
void |
testMultiEKWithOneRecipient()
One recipients specified to resolver, three EncryptedKeys in instance,
two RetrievalMethod references.
|
void |
testMultiEKWithTwoRecipients()
Two recipients specified to resolver, three EncryptedKeys in instance,
two RetrievalMethod references.
|
void |
testSingleEKNoRecipient()
No recipients specified to resolver, one EncryptedKey in instance.
|
void |
testSingleEKWithRecipient()
One recipients specified to resolver, one EncryptedKey in instance.
|
void |
testSingleEKWithTransform()
One recipients specified to resolver, RetrievalMethod has Transforms, so should fail.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate SimpleRetrievalMethodEncryptedKeyResolver resolver
public SimpleRetrievalMethodEncryptedKeyResolverTest()
public void testSingleEKNoRecipient()
public void testSingleEKWithRecipient()
public void testSingleEKWithTransform()
public void testMultiEKWithOneRecipient()
public void testMultiEKWithTwoRecipients()
private List<org.opensaml.xmlsec.encryption.EncryptedKey> getEncryptedKeys(SignableSimpleXMLObject sxo)
sxo - the mock object to processprivate List<org.opensaml.xmlsec.encryption.EncryptedKey> generateList(org.opensaml.xmlsec.encryption.EncryptedData encData, EncryptedKeyResolver ekResolver)
encData - the EncryptedData contextekResolver - the resolver to testCopyright © 1999–2015. All rights reserved.