Top Description Constructors Methods
org.bouncycastle.mail.smime.examples

public Class CreateLargeEncryptedMail

extends Object
Class Inheritance
Imports
java.io.File, .FileOutputStream, java.security.KeyStore, java.security.cert.Certificate, .X509Certificate, java.util.Properties, javax.activation.DataHandler, .FileDataSource, javax.mail.Address, .Message, .Session, javax.mail.internet.InternetAddress, .MimeBodyPart, .MimeMessage, org.bouncycastle.cms.CMSAlgorithm, org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder, .JceKeyTransRecipientInfoGenerator, org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator

a simple example that creates a single encrypted mail message.

The key store can be created using the class in org.bouncycastle.jce.examples.PKCS12Example - the program expects only one key to be present in the key file.

Note

while this means that both the private key is available to the program, the private key is retrieved from the keystore only for the purposes of locating the corresponding public key, in normal circumstances you would only be doing this with a certificate available.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CreateLargeEncryptedMailback to summary
public CreateLargeEncryptedMail()

Method Detail

mainback to summary
public static void main(String[] args) throws Exception