public class

SMIMEUtil

extends Object
java.lang.Object
   ↳ org.bouncycastle.mail.smime.SMIMEUtil

Summary

Public Constructors
SMIMEUtil()
Public Methods
static IssuerAndSerialNumber createIssuerAndSerialNumberFor(X509Certificate cert)
Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
static Provider getProvider(String providerName)
static MimeBodyPart toMimeBodyPart(InputStream content)
return the MimeBodyPart described in the input stream content
static MimeBodyPart toMimeBodyPart(byte[] content)
return the MimeBodyPart described in the raw bytes provided in content
static FileBackedMimeBodyPart toMimeBodyPart(CMSTypedStream content)
return a file backed MimeBodyPart described in CMSTypedStream content.
static FileBackedMimeBodyPart toMimeBodyPart(CMSTypedStream content, File file)
Return a file based MimeBodyPart represented by content and backed by the file represented by file.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SMIMEUtil ()

Public Methods

public static IssuerAndSerialNumber createIssuerAndSerialNumberFor (X509Certificate cert)

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.

public static Provider getProvider (String providerName)

public static MimeBodyPart toMimeBodyPart (InputStream content)

return the MimeBodyPart described in the input stream content

public static MimeBodyPart toMimeBodyPart (byte[] content)

return the MimeBodyPart described in the raw bytes provided in content

public static FileBackedMimeBodyPart toMimeBodyPart (CMSTypedStream content)

return a file backed MimeBodyPart described in CMSTypedStream content.

public static FileBackedMimeBodyPart toMimeBodyPart (CMSTypedStream content, File file)

Return a file based MimeBodyPart represented by content and backed by the file represented by file.

Parameters
content content stream containing body part.
file file to store the decoded body part in.
Returns
  • the decoded body part.