|
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.envelopedData.EnvelopedDataDemo
demo.cms.envelopedData.AESEnvelopedDataDemo
public class AESEnvelopedDataDemo
Demonstrates the usage of class EnvelopedDataStream
and
EnvelopedData
for encrypting data using the CMS type
EnvelopedData with the AES cipher algorithm.
AES is used for both content encryption (according to RFC 3565) and
content encryption key wrapping (according to RFC 3394).
This demo creates an EnvelopedData object and subsequently shows several ways that may be used for decrypting the content for some particular recipient.
Keys and certificates are retrieved from the demo KeyStore ("cms.keystore")
which has to be located in your current working directory and may be
created by running the SetupCMSKeyStore
program.
EnvelopedDataStream
,
EnvelopedData
,
RecipientInfo
,
KeyTransRecipientInfo
,
KeyAgreeRecipientInfo
,
KEKRecipientInfo
Constructor Summary | |
---|---|
AESEnvelopedDataDemo()
Creates an AESEnvelopedDataDemo and setups the demo certificates. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
Main method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AESEnvelopedDataDemo() throws java.io.IOException, java.security.NoSuchAlgorithmException
SetupCMSKeyStore
.
java.io.IOException
- if an file read error occurs
java.security.NoSuchAlgorithmException
- if the requested algorithms are not supportedMethod Detail |
---|
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 |
![]() |