org.bouncycastle.mail.smime.examples

Class ExampleUtils


public class ExampleUtils
extends java.lang.Object

Method Summary

static void
dumpContent(MimeBodyPart bodyPart, String fileName)
Dump the content of the passed in BodyPart to the file fileName.
static String
findKeyAlias(KeyStore store, String storeName, char[] password)

Method Details

dumpContent

public static void dumpContent(MimeBodyPart bodyPart,
                               String fileName)
            throws MessagingException,
                   IOException
Dump the content of the passed in BodyPart to the file fileName.

findKeyAlias

public static String findKeyAlias(KeyStore store,
                                  String storeName,
                                  char[] password)
            throws Exception