Bouncy Castle Cryptography 1.30

org.bouncycastle.mail.smime
Class SMIMEUtil

java.lang.Object
  extended by org.bouncycastle.mail.smime.SMIMEUtil

public class SMIMEUtil
extends java.lang.Object


Constructor Summary
SMIMEUtil()
           
 
Method Summary
static org.bouncycastle.asn1.cms.IssuerAndSerialNumber createIssuerAndSerialNumberFor(java.security.cert.X509Certificate cert)
          Return a CMS IssuerAndSerialNumber structure for the passed in X.509 certificate.
static javax.mail.internet.MimeBodyPart toMimeBodyPart(byte[] content)
          return the MimeBodyPart described in the raw bytes provided in content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMIMEUtil

public SMIMEUtil()
Method Detail

toMimeBodyPart

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

Throws:
SMIMEException

createIssuerAndSerialNumberFor

public static org.bouncycastle.asn1.cms.IssuerAndSerialNumber createIssuerAndSerialNumberFor(java.security.cert.X509Certificate cert)
                                                                                      throws java.security.cert.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.
Throws:
java.security.cert.CertificateParsingException

Bouncy Castle Cryptography 1.30