|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.ibm.security.smime.jmail.PKCS10MimeDataSource
The PKCS10MimeDataSource class provides an object that wraps a CertificationRequest object in a DataSource interface.
PKCS10MimeHandler,
CertificationRequest| Field Summary | |
static String |
CONTENT_TYPE_PKCS10
|
| Constructor Summary | |
PKCS10MimeDataSource(byte[] encoding,
boolean base64)
Create a PKCS10MimeDataSource with the byte array of the DER-encoded or BASE64-encoded CertificationRequest object. |
|
PKCS10MimeDataSource(byte[] encoding,
boolean base64,
String provider)
Create a PKCS10MimeDataSource with the byte array of the DER-encoded or BASE64-encoded CertificationRequest object. |
|
PKCS10MimeDataSource(CertificationRequest certRequest)
Create a PKCS10MimeDataSource with the CertificationRequest object. |
|
PKCS10MimeDataSource(CertificationRequest certRequest,
String provider)
Create a PKCS10MimeDataSource with the CertificationRequest object. |
|
| Method Summary | |
Object |
clone()
Creates a clone of this PKCS10MimeDataSource object. |
CertificationRequest |
getCertificationRequest()
Returns the CertificationRequest object for this PKCS10MimeDataSource object. |
String |
getContentType()
Returns the MIME type of the underlying object. |
InputStream |
getInputStream()
This method returns a ByteArrayInputStream representing the DER encoding of the CertificationRequest object. |
String |
getName()
Returns the name of the underlying CertificationRequest object. |
OutputStream |
getOutputStream()
This method returns a ByteArrayOutputStream to which the DER encoding of the CertificationRequest object can be written. |
String |
toString()
Returns a string representation of this PKCS10MimeDataSource object consisting of the contained CertificationRequest object. |
| Field Detail |
public static final String CONTENT_TYPE_PKCS10
| Constructor Detail |
public PKCS10MimeDataSource(CertificationRequest certRequest)
certRequest - CertificationRequest object.
public PKCS10MimeDataSource(CertificationRequest certRequest,
String provider)
certRequest - CertificationRequest object.provider - the provider to be used with pkcs.
public PKCS10MimeDataSource(byte[] encoding,
boolean base64)
throws IOException
encoding - byte array of the DER-encoded or base64-encoded
CertificationRequest objectbase64 - true if BASE64-encoded, false if DER-encoded
public PKCS10MimeDataSource(byte[] encoding,
boolean base64,
String provider)
throws IOException
encoding - byte array of the DER-encoded or base64-encoded
CertificationRequest objectbase64 - true if BASE64-encoded, false if DER-encodedprovider - the provider to be used with pkcs| Method Detail |
public Object clone()
public CertificationRequest getCertificationRequest()
public InputStream getInputStream()
throws IOException
public OutputStream getOutputStream()
throws IOException
public String getContentType()
public String getName()
public String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||