Class EncryptedElementTypeEncryptedKeyResolverTest


  • public class EncryptedElementTypeEncryptedKeyResolverTest
    extends XMLObjectBaseTestCase
    Test the SAML EncryptedElementType encrypted key resolver, with keys as peers.
    • Constructor Detail

      • EncryptedElementTypeEncryptedKeyResolverTest

        public EncryptedElementTypeEncryptedKeyResolverTest()
    • Method Detail

      • testSingleEKNoRecipients

        public void testSingleEKNoRecipients()
        No recipients specified to resolver, one EncryptedKey in instance.
      • testSingleEKMultiRecipientWithImplicitMatch

        public void testSingleEKMultiRecipientWithImplicitMatch()
        Multiple recipients specified to resolver, one EncryptedKey in instance with no recipient.
      • testSingleEKOneRecipientWithMatch

        public void testSingleEKOneRecipientWithMatch()
        One recipient specified to resolver, one matching EncryptedKey in instance.
      • testSingleEKOneRecipientNoMatch

        public void testSingleEKOneRecipientNoMatch()
        One recipient specified to resolver, zero matching 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 EncryptedKey in instance.
      • testMultiEKOneRecipientWithMatches

        public void testMultiEKOneRecipientWithMatches()
        Multi recipient specified to resolver, several matching 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