public abstract class StaticStaticECDHDemo extends java.lang.Object
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.
ECDHAuthEnvelopedDataDemo
,
ECDHAuthenticatedDataDemo
,
AuthEnvelopedDataStream
,
AuthEnvelopedData
,
AuthEnvelopedDataOutputStream
,
RecipientInfo
,
KeyAgreeRecipientInfo
,
SetupCMSEccKeyStore
Constructor and Description |
---|
StaticStaticECDHDemo()
Setup the demo certificate chains.
|
Modifier and Type | Method and Description |
---|---|
iaik.cms.RecipientInfo[] |
createRecipients()
Creates the RecipientInfos.
|
public StaticStaticECDHDemo() throws java.io.IOException
SetupCMSEccKeyStore
program.java.io.IOException
- if keys/certificates cannot be read from the keystorepublic iaik.cms.RecipientInfo[] createRecipients() throws iaik.cms.CMSException
iaik.cms.CMSException
- if an error occurs when creating the recipient infos