|
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.SignedAndEnvelopedDataDemo
public class SignedAndEnvelopedDataDemo
This class shows the sequential combination of the SignedData and EnvelopedData implementations.
All keys and certificates are read from a keystore created by the SetupCMSKeyStore program.
| Constructor Summary | |
|---|---|
SignedAndEnvelopedDataDemo()
Setup the demo certificate chains. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] argv)
Main method. |
void |
start()
Starts the test. |
void |
testSignedAndEnvelopedData(byte[] message)
Uses the non-stream based SignedData and EnvelopedData implementations ( SignedData, EnvelopedData to
sign and envelope the given message, encode the CMS object, decodes it
again, removes the envlope and verifies the signature. |
void |
testSignedAndEnvelopedDataStream(byte[] message)
Uses the stream based SignedData and EnvelopedData implementations ( SignedDataStream, EnvelopedDataStream to
sign and envelope the given message, encode 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 SignedAndEnvelopedDataDemo()
throws java.io.IOException
java.io.IOException - if an file read error occurs| Method Detail |
|---|
public void testSignedAndEnvelopedDataStream(byte[] message)
throws java.lang.Exception
SignedDataStream, EnvelopedDataStream to
sign and envelope the given message, encode the CMS object, decodes it
again, removes the envlope and verifies the signature.
message - the message to be signed and enveloped
java.lang.Exception - if an error occurs
public void testSignedAndEnvelopedData(byte[] message)
throws java.lang.Exception
SignedData, EnvelopedData to
sign and envelope the given message, encode the CMS object, decodes it
again, removes the envlope and verifies the signature.
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 |
|