Bouncy Castle Cryptography Library 1.60

org.bouncycastle.cms.test
Class BcSignedDataTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.bouncycastle.cms.test.BcSignedDataTest
All Implemented Interfaces:
junit.framework.Test

public class BcSignedDataTest
extends junit.framework.TestCase


Field Summary
static byte[] xtraCounterSig
           
 
Constructor Summary
BcSignedDataTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testCertOrdering1()
           
 void testCertOrdering2()
           
 void testCertStoreReplacement()
           
 void testCounterSig()
           
 void testDetachedVerification()
           
 void testDetachedVerificationWithBufferingContentSigner()
           
 void testDSAEncapsulated()
           
 void testDSAEncapsulatedSubjectKeyID()
           
 void testECDSAEncapsulated()
           
 void testECDSAEncapsulatedSubjectKeyID()
           
 void testECDSASHA224Encapsulated()
           
 void testECDSASHA256Encapsulated()
           
 void testECDSASHA384Encapsulated()
           
 void testECDSASHA512Encapsulated()
           
 void testECDSASHA512EncapsulatedWithKeyFactoryAsEC()
           
 void testEncapsulatedCertStoreReplacement()
           
 void testEncapsulatedSamples()
           
 void testForMultipleCounterSignatures()
           
 void testLwSHA1WithRSAAndAttributeTable()
           
 void testNullContentWithSigner()
           
 void testRIPEMD128WithRSAEncapsulated()
           
 void testRIPEMD160WithRSAEncapsulated()
           
 void testRIPEMD256WithRSAEncapsulated()
           
 void testSamples()
           
 void testSHA1AndMD5WithRSAEncapsulatedRepeated()
           
 void testSHA1WithRSAAndAttributeTable()
           
 void testSHA1WithRSAAndAttributeTableSimple()
           
 void testSHA1WithRSACounterSignature()
           
 void testSHA1WithRSAEncapsulated()
           
 void testSHA1WithRSAEncapsulatedSubjectKeyID()
           
 void testSHA1WithRSANoAttributes()
           
 void testSHA1WithRSANoAttributesSimple()
           
 void testSHA1WithRSAPSS()
           
 void testSHA1WithRSAViaConfig()
           
 void testSHA224WithRSAEncapsulated()
           
 void testSHA224WithRSAPSS()
           
 void testSHA256WithRSAEncapsulated()
           
 void testSHA256WithRSAPSS()
           
 void testSHA384WithRSAPSS()
           
 void testSignerStoreReplacement()
           
 void testUnsortedAttributes()
           
 void testWithAttributeCertificate()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xtraCounterSig

public static byte[] xtraCounterSig
Constructor Detail

BcSignedDataTest

public BcSignedDataTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

suite

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

testDetachedVerification

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

testDetachedVerificationWithBufferingContentSigner

public void testDetachedVerificationWithBufferingContentSigner()
                                                        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

testSHA1WithRSAViaConfig

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

testSHA1WithRSAAndAttributeTableSimple

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

testSHA1WithRSAAndAttributeTable

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

testLwSHA1WithRSAAndAttributeTable

public void testLwSHA1WithRSAAndAttributeTable()
                                        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

testSHA224WithRSAEncapsulated

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

testSHA256WithRSAEncapsulated

public void testSHA256WithRSAEncapsulated()
                                   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

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

testSHA1WithRSACounterSignature

public void testSHA1WithRSACounterSignature()
                                     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

testCounterSig

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

testForMultipleCounterSignatures

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

Bouncy Castle Cryptography Library 1.60