Class SignaturePartsTest


  • public class SignaturePartsTest
    extends Object
    This is some unit tests for signing using signature parts. Note that the "soapMsg" below has a custom header added.
    • Constructor Detail

    • Method Detail

      • testSOAPHeader

        @Test
        public void testSOAPHeader()
                            throws Exception
        Test signing a custom SOAP header
        Throws:
        Exception
      • testOptionalSOAPHeaderPresent

        @Test
        public void testOptionalSOAPHeaderPresent()
                                           throws Exception
        Throws:
        Exception
      • testOptionalSOAPHeaderNotPresent

        @Test
        public void testOptionalSOAPHeaderNotPresent()
                                              throws Exception
        Throws:
        Exception
      • testRequiredSOAPHeaderNotPresent

        @Test
        public void testRequiredSOAPHeaderNotPresent()
                                              throws Exception
        Throws:
        Exception
      • testSOAPHeaderSTRTransform

        @Test
        public void testSOAPHeaderSTRTransform()
                                        throws Exception
        Test signing of a header through a STR Dereference Transform
        Throws:
        Exception
      • testBadLocalname

        @Test
        public void testBadLocalname()
                              throws Exception
        Test signing a custom SOAP header with a bad localname
        Throws:
        Exception
      • testBadNamespace

        @Test
        public void testBadNamespace()
                              throws Exception
        Test signing a custom SOAP header with a bad namespace
        Throws:
        Exception
      • testSOAPHeaderAndBody

        @Test
        public void testSOAPHeaderAndBody()
                                   throws Exception
        Test signing a custom SOAP header and the SOAP body
        Throws:
        Exception
      • testSignaturePartDOMElement

        @Test
        public void testSignaturePartDOMElement()
                                         throws Exception
        Test getting a DOM Element from WSEncryptionPart directly
        Throws:
        Exception
      • testMultipleElements

        @Test
        public void testMultipleElements()
                                  throws Exception
        Test signing two SOAP Body elements with the same QName.
        Throws:
        Exception
      • testSignedKeyInfo

        @Test
        public void testSignedKeyInfo()
                               throws Exception
        Throws:
        Exception
      • testSignedKeyInfoAction

        @Test
        public void testSignedKeyInfoAction()
                                     throws Exception
        Throws:
        Exception