demo.pkcs
Class TestSignedAndEnvelopedDataStream

java.lang.Object
  |
  +--demo.pkcs.TestSignedAndEnvelopedDataStream

public class TestSignedAndEnvelopedDataStream
extends Object

This class shows the sequential combination of the SignedData and EnvelopedData stream implementations.

All keys and certificates are read from a keystore created by the SetupKeyStore program.

This class tests the following PKCS#7 content type implementations:

Version:
File Revision 15

Constructor Summary
TestSignedAndEnvelopedDataStream()
          Setup the demo certificate chains.
 
Method Summary
static void main(String[] argv)
          Starts the PKCS#7 content type implementation tests.
 void start()
          Starts the test.
 void testSignedAndEnvelopedDataStream(byte[] message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSignedAndEnvelopedDataStream

public TestSignedAndEnvelopedDataStream()
                                 throws IOException
Setup the demo certificate chains. Keys and certificate are retrieved from the demo KeyStore.
Throws:
IOException - if an file read error occurs
Method Detail

testSignedAndEnvelopedDataStream

public void testSignedAndEnvelopedDataStream(byte[] message)
                                      throws Exception

start

public void start()
Starts the test.

main

public static void main(String[] argv)
                 throws Exception
Starts the PKCS#7 content type implementation tests.
Throws:
IOException - if an I/O error occurs when reading required keys and certificates from files

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK