org.bouncycastle.mail.smime
Class SMIMEUtil
java.lang.Objectorg.bouncycastle.mail.smime.SMIMEUtil
public class SMIMEUtil
extends java.lang.Object
createIssuerAndSerialNumberFor
public static IssuerAndSerialNumber createIssuerAndSerialNumberFor(X509Certificate cert)
throws CertificateParsingException Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
cert - the X.509 certificate to get the issuer and serial number for.
- an IssuerAndSerialNumber structure representing the certificate.
toMimeBodyPart
public static MimeBodyPart toMimeBodyPart(InputStream content)
throws SMIMEException return the MimeBodyPart described in the input stream content
toMimeBodyPart
public static MimeBodyPart toMimeBodyPart(byte[] content)
throws SMIMEException return the MimeBodyPart described in the raw bytes provided in content
toMimeBodyPart
public static FileBackedMimeBodyPart toMimeBodyPart(CMSTypedStream content,
File file)
throws SMIMEException Return a file based MimeBodyPart represented by content and backed
by the file represented by file.
content - content stream containing body part.file - file to store the decoded body part in.