Class NewSignedDataTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class NewSignedDataTest
    extends junit.framework.TestCase
    • Field Detail

      • xtraCounterSig

        public static byte[] xtraCounterSig
    • Constructor Detail

      • NewSignedDataTest

        public NewSignedDataTest​(java.lang.String name)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • suite

        public static junit.framework.Test suite()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setUp

        public void setUp()
                   throws java.lang.Exception
        Overrides:
        setUp in class junit.framework.TestCase
        Throws:
        java.lang.Exception
      • testDetachedVerification

        public void testDetachedVerification()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEmptyContent

        public void testEmptyContent()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1AndMD5WithRSAEncapsulatedRepeated

        public void testSHA1AndMD5WithRSAEncapsulatedRepeated()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSANoAttributes

        public void testSHA1WithRSANoAttributes()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSANoAttributesSimple

        public void testSHA1WithRSANoAttributesSimple()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAAndOtherRevocation

        public void testSHA1WithRSAAndOtherRevocation()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAAndAttributeTableSimple

        public void testSHA1WithRSAAndAttributeTableSimple()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCMSAlgorithmProtection

        public void testCMSAlgorithmProtection()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAAndAttributeTable

        public void testSHA1WithRSAAndAttributeTable()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRemoveAttribute

        public void testRemoveAttribute()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSignerInformationExtension

        public void testSignerInformationExtension()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRawSHA256MissingNull

        public void testRawSHA256MissingNull()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLwSHA1WithRSAAndAttributeTable

        public void testLwSHA1WithRSAAndAttributeTable()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLwSHA3_256WithRSAAndAttributeTable

        public void testLwSHA3_256WithRSAAndAttributeTable()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAEncapsulated

        public void testSHA1WithRSAEncapsulated()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAEncapsulatedSubjectKeyID

        public void testSHA1WithRSAEncapsulatedSubjectKeyID()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSAPSS

        public void testSHA1WithRSAPSS()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA224WithRSAPSS

        public void testSHA224WithRSAPSS()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA256WithRSAPSS

        public void testSHA256WithRSAPSS()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA384WithRSAPSS

        public void testSHA384WithRSAPSS()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_224WithRSAPSS

        public void testSHA3_224WithRSAPSS()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_256WithRSAPSS

        public void testSHA3_256WithRSAPSS()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_384WithRSAPSS

        public void testSHA3_384WithRSAPSS()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEd25519

        public void testEd25519()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEd448

        public void testEd448()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDetachedEd25519

        public void testDetachedEd25519()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEdDetached448

        public void testEdDetached448()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEd25519WithNoAttr

        public void testEd25519WithNoAttr()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEd448WithNoAttr

        public void testEd448WithNoAttr()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_224WithDSAEncapsulated

        public void testSHA3_224WithDSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_256WithDSAEncapsulated

        public void testSHA3_256WithDSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_384WithDSAEncapsulated

        public void testSHA3_384WithDSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_512WithDSAEncapsulated

        public void testSHA3_512WithDSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA224WithRSAEncapsulated

        public void testSHA224WithRSAEncapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA256WithRSAEncapsulated

        public void testSHA256WithRSAEncapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_224WithRSAEncapsulated

        public void testSHA3_224WithRSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_256WithRSAEncapsulated

        public void testSHA3_256WithRSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_384WithRSAEncapsulated

        public void testSHA3_384WithRSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA3_512WithRSAEncapsulated

        public void testSHA3_512WithRSAEncapsulated()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRIPEMD128WithRSAEncapsulated

        public void testRIPEMD128WithRSAEncapsulated()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRIPEMD160WithRSAEncapsulated

        public void testRIPEMD160WithRSAEncapsulated()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRIPEMD256WithRSAEncapsulated

        public void testRIPEMD256WithRSAEncapsulated()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSAEncapsulated

        public void testECDSAEncapsulated()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSAEncapsulatedSubjectKeyID

        public void testECDSAEncapsulatedSubjectKeyID()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA224Encapsulated

        public void testECDSASHA224Encapsulated()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA256Encapsulated

        public void testECDSASHA256Encapsulated()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA384Encapsulated

        public void testECDSASHA384Encapsulated()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA512Encapsulated

        public void testECDSASHA512Encapsulated()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA3_224Encapsulated

        public void testECDSASHA3_224Encapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA3_256Encapsulated

        public void testECDSASHA3_256Encapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA3_384Encapsulated

        public void testECDSASHA3_384Encapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA3_512Encapsulated

        public void testECDSASHA3_512Encapsulated()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testECDSASHA512EncapsulatedWithKeyFactoryAsEC

        public void testECDSASHA512EncapsulatedWithKeyFactoryAsEC()
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDSAEncapsulated

        public void testDSAEncapsulated()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDSAEncapsulatedSubjectKeyID

        public void testDSAEncapsulatedSubjectKeyID()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGOST3411WithGOST3410Encapsulated

        public void testGOST3411WithGOST3410Encapsulated()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGOST3411WithECGOST3410Encapsulated

        public void testGOST3411WithECGOST3410Encapsulated()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGostNoAttributesEncapsulated

        public void testGostNoAttributesEncapsulated()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSACounterSignature

        public void testSHA1WithRSACounterSignature()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSHA1WithRSACounterSignatureAndVerifierProvider

        public void testSHA1WithRSACounterSignatureAndVerifierProvider()
                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnsortedAttributes

        public void testUnsortedAttributes()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNullContentWithSigner

        public void testNullContentWithSigner()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testWithAttributeCertificate

        public void testWithAttributeCertificate()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCertStoreReplacement

        public void testCertStoreReplacement()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEncapsulatedCertStoreReplacement

        public void testEncapsulatedCertStoreReplacement()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCertOrdering1

        public void testCertOrdering1()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCertOrdering2

        public void testCertOrdering2()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSignerStoreReplacement

        public void testSignerStoreReplacement()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEncapsulatedSamples

        public void testEncapsulatedSamples()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSamples

        public void testSamples()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNoAttrEncapsulatedSample

        public void testNoAttrEncapsulatedSample()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCounterSig

        public void testCounterSig()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCertificateManagement

        public void testCertificateManagement()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMixed

        public void testMixed()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMSPKCS7

        public void testMSPKCS7()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testForMultipleCounterSignatures

        public void testForMultipleCounterSignatures()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception