FileDocCategorySizeDatePackage
SMIMETestUtil.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1205Wed Oct 01 10:56:10 BST 2008org.bouncycastle.mail.smime.test

SMIMETestUtil

public class SMIMETestUtil extends Object

Fields Summary
public static final boolean
DEBUG
Constructors Summary
Methods Summary
public static javax.mail.internet.MimeBodyPartmakeMimeBodyPart(java.lang.String msg)


    
    
        Security.addProvider(new BouncyCastleProvider());
    

        MimeBodyPart _mbp = new MimeBodyPart();
        _mbp.setText(msg);
        return _mbp;
    
public static javax.mail.internet.MimeBodyPartmakeMimeBodyPart(javax.mail.internet.MimeMultipart mm)


        MimeBodyPart _mbp = new MimeBodyPart();
        _mbp.setContent(mm, mm.getContentType());
        return _mbp;
    
public static javax.mail.internet.MimeMultipartmakeMimeMultipart(java.lang.String msg1, java.lang.String msg2)


        MimeMultipart _mm = new MimeMultipart();
        _mm.addBodyPart(makeMimeBodyPart(msg1));
        _mm.addBodyPart(makeMimeBodyPart(msg2));

        return _mm;