public class ChainingEncryptedKeyResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private Set<String> |
recipients |
private ChainingEncryptedKeyResolver |
resolver
The resolver instance to be tested.
|
private List<EncryptedKeyResolver> |
resolverChain |
| Constructor and Description |
|---|
ChainingEncryptedKeyResolverTest() |
| 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 SignableSimpleXMLObject.
|
protected void |
setUp() |
void |
testEmptyChain()
Test error case of empty resolver chain.
|
void |
testMultiEKWithOneRecipient()
One recipient specified to resolver, EncryptedKeys in instance inline and via RetrievalMethod .
|
void |
testMultiEKWithTwoRecipients()
Two recipients specified to resolver, EncryptedKeys in instance inline and via RetrievalMethod .
|
void |
testSingleEKInline()
One recipient specified to resolver, EncryptedKey in instance inline.
|
void |
testSingleEKRetrievalMethod()
One recipient specified to resolver, EncryptedKey in instance via RetrievalMethod .
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate ChainingEncryptedKeyResolver resolver
private List<EncryptedKeyResolver> resolverChain
public void testEmptyChain()
public void testSingleEKInline()
public void testSingleEKRetrievalMethod()
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.