Class UTSignatureTest


  • public class UTSignatureTest
    extends Object
    WS-Security Test Case for UsernameToken Key Derivation, as defined in the UsernameTokenProfile 1.1 specification. The derived keys are used for signature. Note that this functionality is different to the UTDerivedKeyTest test case, which uses the derived key in conjunction with wsc:DerivedKeyToken. It's also different to UTWseSignatureTest, which derives a key for signature using a non-standard implementation.
    • Method Detail

      • testSignature

        @Test
        public void testSignature()
                           throws Exception
        Test using a UsernameToken derived key for signing a SOAP body
        Throws:
        Exception
      • testBadUserSignature

        @Test
        public void testBadUserSignature()
                                  throws Exception
        Test using a UsernameToken derived key for signing a SOAP body. In this test the user is "colm" rather than "bob", and so signature verification should fail.
        Throws:
        Exception
      • testHandlerSignature

        @Test
        public void testHandlerSignature()
                                  throws Exception
        Test using a UsernameToken derived key for signing a SOAP body via WSHandler
        Throws:
        Exception
      • testHandlerSignatureIterations

        @Test
        public void testHandlerSignatureIterations()
                                            throws Exception
        Test using a UsernameToken derived key for signing a SOAP body via WSHandler
        Throws:
        Exception