Bouncy Castle Cryptography Library 1.64

org.bouncycastle.mail.smime.test
Class NewSMIMESignedTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.bouncycastle.mail.smime.test.NewSMIMESignedTest
All Implemented Interfaces:
junit.framework.Test

public class NewSMIMESignedTest
extends junit.framework.TestCase


Constructor Summary
NewSMIMESignedTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void multipartMixedTest(javax.mail.internet.MimeBodyPart part1, javax.mail.internet.MimeBodyPart part2)
           
static junit.framework.Test suite()
           
 void testBasicAS2()
           
 void testBasicAS2Parser()
           
 void testCertificateManagement()
           
 void testDoubleNlCanonical()
           
 void testEmbeddedMulti()
           
 void testEmbeddedMultiParser()
           
 void testExtraNlInPostamble()
           
 void testGOST3411WithECGOST3410()
           
 void testGOST3411WithGOST3410()
           
 void testHeaders()
           
 void testHeadersEncapsulated()
           
 void testMD5WithRSA()
           
 void testMD5WithRSAAddSignersSHA1()
           
 void testMimeMultipart()
           
 void testMimeMultipartBinaryParser()
           
 void testMimeMultipartBinaryParserGetMimeContent()
           
 void testMimeMultipartBinaryReader()
           
 void testMultiAlternative()
           
 void testMultiAlternativeParser()
           
 void testMultipartBinaryBinary()
           
 void testMultipartBinaryText()
           
 void testMultipartTextBinary()
           
 void testMultipartTextText()
           
 void testPSSVariantSalt()
           
 void testQuotable()
           
 void testQuotableParser()
           
 void testRawAS2Parser()
           
 void testRIPEMD160WithRSA()
           
 void testSHA1withDSA()
           
 void testSHA1WithRSA()
           
 void testSHA1WithRSAAddSigners()
           
 void testSHA1WithRSACanonicalization()
           
 void testSHA1WithRSAEncapsulated()
           
 void testSHA1WithRSAEncapsulatedParser()
           
 void testSHA1WithRSAEncapsulatedParserAndFile()
           
 void testSHA1WithRSAPSS()
           
 void testSHA224WithRSA()
           
 void testSHA224WithRSAParser()
           
 void testSHA224WithRSAParserEncryptedWithDES()
           
 void testSHA224WithRSAPSS()
           
 void testSHA224WithRSARfc3851()
           
 void testSHA256WithRSA()
           
 void testSHA256WithRSABinary()
           
 void testSHA256WithRSABinaryWithParser()
           
 void testSHA256WithRSAPSS()
           
 void testSHA256WithRSARfc3851()
           
 void testSHA384WithRSA()
           
 void testSHA384WithRSAPSS()
           
 void testSHA384WithRSARfc3851()
           
 void testSHA512WithRSA()
           
 void testSHA512WithRSARfc3851()
           
 void testSignAttachmentOnly()
           
 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
 

Constructor Detail

NewSMIMESignedTest

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

main

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

suite

public static junit.framework.Test suite()

testHeaders

public void testHeaders()
                 throws java.lang.Exception

testHeadersEncapsulated

public void testHeadersEncapsulated()
                             throws java.lang.Exception

testMultipartTextText

public void testMultipartTextText()
                           throws java.lang.Exception

testMultipartTextBinary

public void testMultipartTextBinary()
                             throws java.lang.Exception

testMultipartBinaryText

public void testMultipartBinaryText()
                             throws java.lang.Exception

testMultipartBinaryBinary

public void testMultipartBinaryBinary()
                               throws java.lang.Exception

testSHA1WithRSAPSS

public void testSHA1WithRSAPSS()
                        throws java.lang.Exception

testSHA224WithRSAPSS

public void testSHA224WithRSAPSS()
                          throws java.lang.Exception

testSHA256WithRSAPSS

public void testSHA256WithRSAPSS()
                          throws java.lang.Exception

testSHA384WithRSAPSS

public void testSHA384WithRSAPSS()
                          throws java.lang.Exception

multipartMixedTest

public void multipartMixedTest(javax.mail.internet.MimeBodyPart part1,
                               javax.mail.internet.MimeBodyPart part2)
                        throws java.lang.Exception

testSHA1WithRSA

public void testSHA1WithRSA()
                     throws java.lang.Exception

testSHA1WithRSAAddSigners

public void testSHA1WithRSAAddSigners()
                               throws java.lang.Exception

testMD5WithRSAAddSignersSHA1

public void testMD5WithRSAAddSignersSHA1()
                                  throws java.lang.Exception

testSHA1WithRSACanonicalization

public void testSHA1WithRSACanonicalization()
                                     throws java.lang.Exception

testSHA1WithRSAEncapsulated

public void testSHA1WithRSAEncapsulated()
                                 throws java.lang.Exception

testSHA1WithRSAEncapsulatedParser

public void testSHA1WithRSAEncapsulatedParser()
                                       throws java.lang.Exception

testSHA1WithRSAEncapsulatedParserAndFile

public void testSHA1WithRSAEncapsulatedParserAndFile()
                                              throws java.lang.Exception

testMD5WithRSA

public void testMD5WithRSA()
                    throws java.lang.Exception

testSHA224WithRSA

public void testSHA224WithRSA()
                       throws java.lang.Exception

testSHA224WithRSARfc3851

public void testSHA224WithRSARfc3851()
                              throws java.lang.Exception

testSHA256WithRSA

public void testSHA256WithRSA()
                       throws java.lang.Exception

testSHA256WithRSARfc3851

public void testSHA256WithRSARfc3851()
                              throws java.lang.Exception

testSHA384WithRSA

public void testSHA384WithRSA()
                       throws java.lang.Exception

testSHA384WithRSARfc3851

public void testSHA384WithRSARfc3851()
                              throws java.lang.Exception

testSHA512WithRSA

public void testSHA512WithRSA()
                       throws java.lang.Exception

testSHA512WithRSARfc3851

public void testSHA512WithRSARfc3851()
                              throws java.lang.Exception

testRIPEMD160WithRSA

public void testRIPEMD160WithRSA()
                          throws java.lang.Exception

testGOST3411WithGOST3410

public void testGOST3411WithGOST3410()
                              throws java.lang.Exception

testGOST3411WithECGOST3410

public void testGOST3411WithECGOST3410()
                                throws java.lang.Exception

testSHA224WithRSAParser

public void testSHA224WithRSAParser()
                             throws java.lang.Exception

testSHA224WithRSAParserEncryptedWithDES

public void testSHA224WithRSAParserEncryptedWithDES()
                                             throws java.lang.Exception

testSHA1withDSA

public void testSHA1withDSA()
                     throws java.lang.Exception

testSHA256WithRSABinary

public void testSHA256WithRSABinary()
                             throws java.lang.Exception

testSHA256WithRSABinaryWithParser

public void testSHA256WithRSABinaryWithParser()
                                       throws java.lang.Exception

testWithAttributeCertificate

public void testWithAttributeCertificate()
                                  throws java.lang.Exception

testCertificateManagement

public void testCertificateManagement()
                               throws java.lang.Exception

testMimeMultipart

public void testMimeMultipart()
                       throws java.lang.Exception

testMimeMultipartBinaryReader

public void testMimeMultipartBinaryReader()
                                   throws java.lang.Exception

testMimeMultipartBinaryParser

public void testMimeMultipartBinaryParser()
                                   throws java.lang.Exception

testMimeMultipartBinaryParserGetMimeContent

public void testMimeMultipartBinaryParserGetMimeContent()
                                                 throws java.lang.Exception

testQuotable

public void testQuotable()
                  throws java.lang.Exception

testQuotableParser

public void testQuotableParser()
                        throws java.lang.Exception

testEmbeddedMulti

public void testEmbeddedMulti()
                       throws java.lang.Exception

testEmbeddedMultiParser

public void testEmbeddedMultiParser()
                             throws java.lang.Exception

testPSSVariantSalt

public void testPSSVariantSalt()
                        throws java.lang.Exception

testMultiAlternative

public void testMultiAlternative()
                          throws java.lang.Exception

testExtraNlInPostamble

public void testExtraNlInPostamble()
                            throws java.lang.Exception

testDoubleNlCanonical

public void testDoubleNlCanonical()
                           throws java.lang.Exception

testSignAttachmentOnly

public void testSignAttachmentOnly()
                            throws java.lang.Exception

testMultiAlternativeParser

public void testMultiAlternativeParser()
                                throws java.lang.Exception

testBasicAS2

public void testBasicAS2()
                  throws java.lang.Exception

testBasicAS2Parser

public void testBasicAS2Parser()
                        throws java.lang.Exception

testRawAS2Parser

public void testRawAS2Parser()
                      throws java.lang.Exception

Bouncy Castle Cryptography Library 1.64