Class SKISignatureTest


  • public class SKISignatureTest
    extends Object
    WS-Security Test Case for SubjectKeyIdentifier.
    • Method Detail

      • testX509SignatureDSA_SKI

        @Test
        public void testX509SignatureDSA_SKI()
                                      throws Exception
        Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It uses the Direct version, that is it embeds the certificate in the message.

        Throws:
        Exception - Thrown when there is any problem in signing or verification
      • testX509SignatureDSA_Autodetect

        @Test
        public void testX509SignatureDSA_Autodetect()
                                             throws Exception
        Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It gets a certificate with a DSA public key algo to sign, WSSignEnvelope shall detect the algo and set the signature algo accordingly.

        Throws:
        Exception - Thrown when there is any problem in signing or verification
      • testX509SignatureRSA_Autodetect

        @Test
        public void testX509SignatureRSA_Autodetect()
                                             throws Exception
        Test that signs and verifies a WS-Security envelope using SubjectKeyIdentifier. This test uses the SubjectKeyIdentifier to identify the certificate. It gets a certificate with a RSA public key algo to sign, WSSignEnvelope shall detect the algo and set the signature algo accordingly.

        Throws:
        Exception - Thrown when there is any problem in signing or verification