org.bouncycastle.mail.smime

Class SMIMEUtil


public class SMIMEUtil
extends java.lang.Object

Method Summary

static IssuerAndSerialNumber
createIssuerAndSerialNumberFor(X509Certificate cert)
Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
static MimeBodyPart
toMimeBodyPart(byte[] content)
return the MimeBodyPart described in the raw bytes provided in content

Method Details

createIssuerAndSerialNumberFor

public static IssuerAndSerialNumber createIssuerAndSerialNumberFor(X509Certificate cert)
            throws CertificateParsingException
Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.

Parameters:
cert - the X.509 certificate to get the issuer and serial number for.

Returns:
an IssuerAndSerialNumber structure representing the certificate.


toMimeBodyPart

public static MimeBodyPart toMimeBodyPart(byte[] content)
            throws SMIMEException
return the MimeBodyPart described in the raw bytes provided in content