Class XadesSignerTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class XadesSignerTest
    extends AbstractSignatureTest

    Class that defines tests for XadesSigner.

    Project:

    @Firma and TS@ Web Services Integration Platform.

    Version:
    1.2, 14/03/2017.
    • Constructor Detail

      • XadesSignerTest

        public XadesSignerTest()
    • Method Detail

      • testSignBinaryEnveloping

        public void testSignBinaryEnveloping()
                                      throws java.lang.Exception
        Tests for signing a binary file as an enveloping signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignXmlEnveloping

        public void testSignXmlEnveloping()
                                   throws java.lang.Exception
        Tests for signing a XML file as an enveloping signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignBinaryEnveloped

        public void testSignBinaryEnveloped()
                                     throws java.lang.Exception
        Tests for signing a binary file as an enveloped signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignXmlEnveloped

        public void testSignXmlEnveloped()
                                  throws java.lang.Exception
        Tests for signing a XML file as an enveloped signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignBinaryDetached

        public void testSignBinaryDetached()
                                    throws java.lang.Exception
        Tests for signing a binary file as a detached signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignXmlDetached

        public void testSignXmlDetached()
                                 throws java.lang.Exception
        Tests for signing a XML file as a detached signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignECCXmlDetached

        public void testSignECCXmlDetached()
                                    throws java.lang.Exception
        Tests for signing a XML file as a detached signature with a ECC certificate.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignExternallyDetached

        public void testSignExternallyDetached()
                                        throws java.lang.Exception
        Tests for signing as an externally detached signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignOtherAlgorithms

        public void testSignOtherAlgorithms()
                                     throws java.lang.Exception
        Tests for signing a binary file as an enveloping signature with SHA-512.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignWithPolicy

        public void testSignWithPolicy()
                                throws java.lang.Exception
        Tests for signing a XML file as an enveloping signature with signature policies.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignEnveloping

        public void testCoSignEnveloping()
                                  throws java.lang.Exception
        Tests for generating enveloping co-signatures.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignECCEnveloping

        public void testCoSignECCEnveloping()
                                     throws java.lang.Exception
        Tests for generating enveloping co-signatures with a ECC certificate.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignEnveloped

        public void testCoSignEnveloped()
                                 throws java.lang.Exception
        Tests for generating enveloped co-signatures.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignDetached

        public void testCoSignDetached()
                                throws java.lang.Exception
        Tests for generating detached co-signatures.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignExternallyDetached

        public void testCoSignExternallyDetached()
                                          throws java.lang.Exception
        Tests for generating externally detached co-signatures.
        Throws:
        java.lang.Exception - If the test fails.
      • testCoSignExternallyECCDetached

        public void testCoSignExternallyECCDetached()
                                             throws java.lang.Exception
        Tests for generating externally detached co-signatures with a ECC certificate.
        Throws:
        java.lang.Exception - If the test fails.
      • testCounterSignDetached

        public void testCounterSignDetached()
                                     throws java.lang.Exception
        Tests for generating detached counter-signatures.
        Throws:
        java.lang.Exception - If the test fails.
      • testCounterSignECCDetached

        public void testCounterSignECCDetached()
                                        throws java.lang.Exception
        Tests for generating detached counter-signatures with a ECC certificate.
        Throws:
        java.lang.Exception - If the test fails.
      • testCounterSignCoSign

        public void testCounterSignCoSign()
                                   throws java.lang.Exception
        Test for generating a counter-signature from a co-signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testCounterSignCounterSign

        public void testCounterSignCounterSign()
                                        throws java.lang.Exception
        Test for generating a counter-signature from a counter-signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testCounterSignCounterCoSign

        public void testCounterSignCounterCoSign()
                                          throws java.lang.Exception
        Test for generating a counter-signature from a counter-signature generated from a co-signature.
        Throws:
        java.lang.Exception - If the test fails.
      • testSignWithTimestamp

        public void testSignWithTimestamp()
        Tests for generating XAdES signatures with timestamp.
      • testCoSignWithTimestamp

        public void testCoSignWithTimestamp()
        Tests for generating XAdES co-signatures with timestamp.
      • testCounterSignWithTimestamp

        public void testCounterSignWithTimestamp()
        Tests for generating XAdES counter-signatures with timestamp.