public class SMIMEUtil extends Object
Constructor and Description |
---|
SMIMEUtil() |
Modifier and Type | Method and Description |
---|---|
static IssuerAndSerialNumber |
createIssuerAndSerialNumberFor(X509Certificate cert)
Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
|
static Provider |
getProvider(String providerName) |
static javax.mail.internet.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.
|
static javax.mail.internet.MimeBodyPart |
toMimeBodyPart(InputStream content)
return the MimeBodyPart described in the input stream content
|
public static Provider getProvider(String providerName) throws NoSuchProviderException
NoSuchProviderException
public static javax.mail.internet.MimeBodyPart toMimeBodyPart(byte[] content) throws SMIMEException
SMIMEException
public static javax.mail.internet.MimeBodyPart toMimeBodyPart(InputStream content) throws SMIMEException
SMIMEException
public static FileBackedMimeBodyPart toMimeBodyPart(CMSTypedStream content) throws SMIMEException
CMSTypedStream
content.
SMIMEException
public static FileBackedMimeBodyPart toMimeBodyPart(CMSTypedStream content, File file) throws SMIMEException
content
- content stream containing body part.file
- file to store the decoded body part in.SMIMEException
public static IssuerAndSerialNumber createIssuerAndSerialNumberFor(X509Certificate cert) throws CertificateParsingException
cert
- the X.509 certificate to get the issuer and serial number for.CertificateParsingException
Copyright © 2015. All rights reserved.