|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdemo.cms.signedAndEnvelopedData.SignedAndEnvelopedDataOutputStreamDemo
public class SignedAndEnvelopedDataOutputStreamDemo
This class shows the sequential combination of the SignedDataOutputStream and EnvelopedDataOutputStream implementations.
All keys and certificates are read from a keystore created by the SetupCMSKeyStore program.
| Constructor Summary | |
|---|---|
SignedAndEnvelopedDataOutputStreamDemo()
Setup the demo certificate chains. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] argv)
Main method. |
void |
start()
Starts the test. |
void |
testSignedAndEnvelopedDataStream(byte[] message)
Signs and envelopes the given message, encodes the CMS object, decodes it again, removes the envlope and verifies the signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignedAndEnvelopedDataOutputStreamDemo()
throws java.io.IOException
java.io.IOException - if an file read error occurs| Method Detail |
|---|
public void testSignedAndEnvelopedDataStream(byte[] message)
throws java.lang.Exception
message - the message to be signed and enveloped
java.lang.Exception - if an error occurspublic void start()
public static void main(java.lang.String[] argv)
throws java.lang.Exception
java.io.IOException - if an I/O error occurs when reading required keys
and certificates from files
java.lang.Exception
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|