Class ReferenceListDataRefTest


  • public class ReferenceListDataRefTest
    extends Object
    Test that checks for correct WSDataRef which should be returned by org.apache.wss4j.dom.processor.ReferenceListProcessor This test uses the RSA_15 algorithm to transport (wrap) the symmetric key. The test case creates a ReferenceList element that references EncryptedData elements. The ReferencesList element is put into the Security header, not as child of the EncryptedKey. The EncryptedData elements contain a KeyInfo that references the EncryptedKey via a STR/Reference structure. WSDataRef object must contain the correct QName of the decrypted element.
    • Constructor Detail

      • ReferenceListDataRefTest

        public ReferenceListDataRefTest()
                                 throws Exception
        Throws:
        Exception
    • Method Detail

      • testDataRefReferenceListProcessor

        @Test
        public void testDataRefReferenceListProcessor()
                                               throws Exception
        Test that check for correct WSDataRef object from ReferenceList Processor
        Throws:
        Exception - Thrown when there is an error in encryption or decryption