Class SymmetricSignatureTest

  • All Implemented Interfaces:
    CallbackHandler

    public class SymmetricSignatureTest
    extends Object
    implements CallbackHandler
    Test symmetric key signature created using an encrypted key Demonstrates that Signature Crypto object can have null values when calling processSecurityHeader method of WSSecurityEngine.
    • Constructor Detail

      • SymmetricSignatureTest

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

      • setUp

        @BeforeEach
        public void setUp()
                   throws Exception
        Setup method

        Throws:
        Exception - Thrown when there is a problem in setup
      • testSymmetricSignatureSHA1

        @Test
        public void testSymmetricSignatureSHA1()
                                        throws Exception
        Test signing a message body using a symmetric key with EncryptedKeySHA1
        Throws:
        Exception
      • testSymmetricSignatureDR

        @Test
        public void testSymmetricSignatureDR()
                                      throws Exception
        Test signing a message body using a symmetric key with Direct Reference to an EncryptedKey
        Throws:
        Exception
      • testEncryptedKeySignature

        @Test
        public void testEncryptedKeySignature()
                                       throws Exception
        Test that first signs, then encrypts a WS-Security envelope.

        Throws:
        Exception - Thrown when there is any problem in signing, encryption, decryption, or verification
      • testSymmetricSignatureSHA1Handler

        @Test
        public void testSymmetricSignatureSHA1Handler()
                                               throws Exception
        Test signing a message body using a symmetric key with EncryptedKeySHA1. The request is generated using WSHandler, instead of coding it.
        Throws:
        Exception