FileDocCategorySizeDatePackage
SMIMEEnveloped.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1330Wed Oct 01 10:55:28 BST 2008org.bouncycastle.mail.smime

SMIMEEnveloped

public class SMIMEEnveloped extends org.bouncycastle.cms.CMSEnvelopedData
containing class for an S/MIME pkcs7-mime encrypted MimePart.

Fields Summary
MimePart
message
Constructors Summary
public SMIMEEnveloped(MimeBodyPart message)

        super(getInputStream(message));

        this.message = message;
    
public SMIMEEnveloped(MimeMessage message)

        super(getInputStream(message));

        this.message = message;
    
Methods Summary
public javax.mail.internet.MimePartgetEncryptedContent()

        return message;
    
private static java.io.InputStreamgetInputStream(javax.mail.Part bodyPart)

        try
        {
            return bodyPart.getInputStream();
        }
        catch (IOException e)
        {
            throw new MessagingException("can't extract input stream: " + e);
        }