|
Oracle Security Developer Tools S/MIME Java API Reference 10g Release 2 (10.1.2.0.2) B15567-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.smime.SmimeCompressed
A S/MIME RFC 3274 Compressed Message.
Constructor Summary | |
SmimeCompressed(java.io.InputStream is) Create a SmimeCompressed . |
|
SmimeCompressed(javax.mail.internet.MimeBodyPart content) Create a SmimeCompressed . |
|
SmimeCompressed(javax.mail.internet.MimeBodyPart content, AlgorithmIdentifier contentCompressionAlgID) Create a SmimeCompressed . |
Method Summary | |
java.lang.String |
generateContentType() Returns the content type. |
java.lang.String |
generateContentType(boolean useStandardContentTypes) Returns the content type. |
AlgorithmIdentifier |
getContentCompressionAlgID() Returns the content compression algorithm. |
javax.mail.internet.MimeBodyPart |
getEnclosedBodyPart() Returns the Decompressed Content. |
void |
writeTo(java.io.OutputStream os, java.lang.String mimeType) Writes this SmimeCompressed to the given output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SmimeCompressed(javax.mail.internet.MimeBodyPart content) throws javax.mail.MessagingException, java.io.IOException
SmimeCompressed
.content
- The message content.javax.mail.MessagingException
- An error occurred while setting the message content.java.io.IOException
public SmimeCompressed(javax.mail.internet.MimeBodyPart content, AlgorithmIdentifier contentCompressionAlgID) throws javax.mail.MessagingException, java.io.IOException
SmimeCompressed
.content
- The message content.contentCompressionAlgID
- The content compression algorithm identifier.javax.mail.MessagingException
- An error occurred while setting the message content.java.io.IOException
public SmimeCompressed(java.io.InputStream is) throws java.io.IOException
SmimeCompressed
.is
- The input stream.java.io.IOException
- The input encoding is incorrect or an I/O error occurred.Method Detail |
public javax.mail.internet.MimeBodyPart getEnclosedBodyPart() throws AlgorithmIdentifierException, InvalidInputException, javax.mail.MessagingException
AlgorithmIdentifierException
- The content compression algorithm is not supported.InvalidInputException
- The message content type is incorrect.javax.mail.MessagingException
- An error occurred while setting the decrypted content.public AlgorithmIdentifier getContentCompressionAlgID()
public java.lang.String generateContentType(boolean useStandardContentTypes)
generateContentType
in interface SmimeObject
useStandardContentTypes
- If true
the standard content type is generated; If false
the experimental content type is generated.public java.lang.String generateContentType()
generateContentType
in interface SmimeObject
public void writeTo(java.io.OutputStream os, java.lang.String mimeType) throws java.io.IOException, javax.mail.MessagingException
SmimeCompressed
to the given output stream. Relevant canonicalizations, such as transforming text line-breaks to CRLF
, are applied.writeTo
in interface SmimeObject
os
- The output stream to which this SmimeCompressed
will be written.mimeType
- Ignored.java.io.IOException
- An I/O error occurred.javax.mail.MessagingException
- An error occurred while creating the smime message.
|
Oracle Security Developer Tools S/MIME Java API Reference 10g Release 2 (10.1.2.0.2) B15567-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |