Class DerivedKeyTest


  • public class DerivedKeyTest
    extends Object
    A set of tests for using a derived key for encryption/signature.
    • Method Detail

      • testEncryptionDecryptionTRIPLEDES

        @Test
        public void testEncryptionDecryptionTRIPLEDES()
                                               throws Exception
        Test encryption using a DerivedKeyToken using TRIPLEDES
        Throws:
        Exception - Thrown when there is any problem in signing or verification
      • testEncryptionDecryptionAES128

        @Test
        public void testEncryptionDecryptionAES128()
                                            throws Exception
        Test encryption using a DerivedKeyToken using AES128
        Throws:
        Exception - Thrown when there is any problem in signing or verification
      • testEncryptionDecryptionAES256

        @Test
        public void testEncryptionDecryptionAES256()
                                            throws Exception
        Throws:
        Exception
      • testSignatureThumbprintSHA1

        @Test
        public void testSignatureThumbprintSHA1()
                                         throws Exception
        A test for WSS-211 - "WSS4J does not support ThumbprintSHA1 in DerivedKeyTokens". Here we're signing the SOAP body, where the signature refers to a DerivedKeyToken which uses a Thumbprint-SHA1 reference to the encoded certificate (which is in the keystore)
        Throws:
        Exception
      • testSignatureSKI

        @Test
        public void testSignatureSKI()
                              throws Exception
        Here we're signing the SOAP body, where the signature refers to a DerivedKeyToken which uses an SKI reference to the encoded certificate (which is in the keystore)
        Throws:
        Exception
      • testSignatureEncrypt

        @Test
        public void testSignatureEncrypt()
                                  throws Exception
        Throws:
        Exception
      • testEncryptSignature

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