Class InlineEncryptedKeyResolverTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.encryption.support.InlineEncryptedKeyResolverTest
-
public class InlineEncryptedKeyResolverTest extends XMLObjectBaseTestCase
Test the inline encrypted key resolver.
-
-
Field Summary
Fields Modifier and Type Field Description private InlineEncryptedKeyResolverresolverThe resolver instance to be tested.-
Fields inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description InlineEncryptedKeyResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<EncryptedKey>generateList(EncryptedData encData, EncryptedKeyResolver ekResolver)Resolve EncryptedKeys and put them in an ordered list.voidtestMultiEKNoRecipients()No recipients specified to resolver.voidtestMultiEKOneRecipientWithMatch()One recipient specified to resolver, one matching and one recipient-less inline EncryptedKey in instance.voidtestMultiEKOneRecipientWithMatches()Multi recipient specified to resolver, several matching inline EncryptedKey in instance.voidtestSingleEKNoRecipients()No recipients specified to resolver, one inline EncryptedKey in instance.voidtestSingleEKOneRecipientNoMatch()One recipient specified to resolver, zero matching inline EncryptedKey in instance.voidtestSingleEKOneRecipientWithMatch()One recipient specified to resolver, one matching inline EncryptedKey in instance.-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
resolver
private InlineEncryptedKeyResolver resolver
The resolver instance to be tested.
-
-
Method Detail
-
testSingleEKNoRecipients
public void testSingleEKNoRecipients()
No recipients specified to resolver, one inline EncryptedKey in instance.
-
testSingleEKOneRecipientWithMatch
public void testSingleEKOneRecipientWithMatch()
One recipient specified to resolver, one matching inline EncryptedKey in instance.
-
testSingleEKOneRecipientNoMatch
public void testSingleEKOneRecipientNoMatch()
One recipient specified to resolver, zero matching inline EncryptedKey in instance.
-
testMultiEKNoRecipients
public void testMultiEKNoRecipients()
No recipients specified to resolver.
-
testMultiEKOneRecipientWithMatch
public void testMultiEKOneRecipientWithMatch()
One recipient specified to resolver, one matching and one recipient-less inline EncryptedKey in instance.
-
testMultiEKOneRecipientWithMatches
public void testMultiEKOneRecipientWithMatches()
Multi recipient specified to resolver, several matching inline EncryptedKey in instance.
-
generateList
private List<EncryptedKey> generateList(EncryptedData encData, EncryptedKeyResolver ekResolver)
Resolve EncryptedKeys and put them in an ordered list.- Parameters:
encData- the EncryptedData contextekResolver- the resolver to test- Returns:
- list of resolved EncryptedKeys
-
-