Class EncryptedKeyDataRefTest


  • public class EncryptedKeyDataRefTest
    extends Object
    Test that checks for correct WSDataRef which should be returned by org.apache.wss4j.dom.processor.EncryptedKeyProcessor 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 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

      • EncryptedKeyDataRefTest

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

      • testDataRefEncryptedKeyProcessor

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