Class InlineEncryptedKeyResolverTest


  • public class InlineEncryptedKeyResolverTest
    extends XMLObjectBaseTestCase
    Test the inline encrypted key resolver.
    • Constructor Detail

      • InlineEncryptedKeyResolverTest

        public InlineEncryptedKeyResolverTest()
    • 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 context
        ekResolver - the resolver to test
        Returns:
        list of resolved EncryptedKeys