public class SimpleSMimeV4EdDemo extends SimpleSMimeV4EcDemo
This demo uses one set of cryptographic algorithms. A demo that uses several combinations of algorithms
is shown in SMimeV4EccDemo
.
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.
To run this demo the following packages are required:
iaik_cms.jar
iaik_jce(_full).jar
(IAIK-JCE Core Crypto Library).
iaik_eccelerate.jar
(IAIK ECC Library).
Constructor and Description |
---|
SimpleSMimeV4EdDemo()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected iaik.asn1.structures.AlgorithmID |
getDigestAlgorithm()
Gets the digest algorithm used for signing.
|
protected iaik.x509.X509Certificate[] |
getRecipientCerts()
Gets the recipient certificates.
|
protected iaik.asn1.structures.AlgorithmID |
getSignatureAlgorithm()
Gets the signature algorithm.
|
protected iaik.utils.KeyAndCertificate |
getSignerKeyAndCert()
Gets signing key and certificate.
|
static void |
main(java.lang.String[] argv)
The main method.
|
start
createEncryptedMessage, createMessage, createSignedAndEncryptedMessage, createSignedMessage, startEncryptionDemo, startSigningAndEncryptionDemo, startSigningDemo
public SimpleSMimeV4EdDemo()
protected iaik.utils.KeyAndCertificate getSignerKeyAndCert()
getSignerKeyAndCert
in class SimpleSMimeV4EcDemo
protected iaik.asn1.structures.AlgorithmID getDigestAlgorithm()
getDigestAlgorithm
in class SimpleSMimeV4EcDemo
protected iaik.asn1.structures.AlgorithmID getSignatureAlgorithm()
getSignatureAlgorithm
in class SimpleSMimeV4EcDemo
protected iaik.x509.X509Certificate[] getRecipientCerts()
getRecipientCerts
in class SimpleSMimeV4EcDemo
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception