IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

demo.cms.ecc
Class StaticStaticECDHDemo

java.lang.Object
  extended by demo.cms.ecc.StaticStaticECDHDemo
Direct Known Subclasses:
ECDHAuthenticatedDataDemo, ECDHAuthEnvelopedDataDemo

public abstract class StaticStaticECDHDemo
extends java.lang.Object

Base class for ECDHAuthEnvelopedDataDemo and ECDHAuthenticatedDataDemo demonstrating the usage of the CMS AuthEnvelopedData and AuthenticatedData content types by using Static-Static ECDH according to 6278 as key agreement method.

Reads keys/certificates required for this demo from a keystore file "cmsecc.keystore" located in your current working directory. If the keystore file does not exist you can create it by running the SetupCMSEccKeyStore program.

Additionally to iaik_cms.jar you also must have iaik_jce_(full).jar (IAIK-JCE, https://sic.tech/products/core-crypto-toolkits/jca-jce/), and iaik_eccelarate.jar (IAIK-ECCelerateTM, https://sic.tech/products/core-crypto-toolkits/eccelerate/) in your classpath.

See Also:
ECDHAuthEnvelopedDataDemo, ECDHAuthenticatedDataDemo, AuthEnvelopedDataStream, AuthEnvelopedData, AuthEnvelopedDataOutputStream, RecipientInfo, KeyAgreeRecipientInfo, SetupCMSEccKeyStore

Constructor Summary
StaticStaticECDHDemo()
          Setup the demo certificate chains.
 
Method Summary
 iaik.cms.RecipientInfo[] createRecipients()
          Creates the RecipientInfos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticStaticECDHDemo

public StaticStaticECDHDemo()
                     throws java.io.IOException
Setup the demo certificate chains. Keys and certificates are retrieved from the demo keyStore file "cmsecc.keystore" located in your current working directory. If the keystore file does not exist you can create it by running the SetupCMSEccKeyStore program.

Throws:
java.io.IOException - if keys/certificates cannot be read from the keystore
Method Detail

createRecipients

public iaik.cms.RecipientInfo[] createRecipients()
                                          throws iaik.cms.CMSException
Creates the RecipientInfos.

Returns:
the RecipientInfos created, two KeyAgreeRecipientInfos
Throws:
iaik.cms.CMSException - if an error occurs when creating the recipient infos

IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

v6.1
(c) 2002 IAIK, (c) 2003 - 2025 SIC