Skip navigation links

Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10672-03


oracle.security.crypto.smime
Interface SmimeObject

All Known Subinterfaces:
SmimeSignedObject
All Known Implementing Classes:
SmimeCompressed, SmimeEnveloped, SmimeMultipartSigned, SmimeSigned, SmimeSignedReceipt

public interface SmimeObject

An interface that represents a S/MIME Object.


Method Summary
 java.lang.String generateContentType()
          Returns the content type of this smime object.
 java.lang.String generateContentType(boolean useStandardContentTypes)
          Returns the content type of this smime object.
 void writeTo(java.io.OutputStream os, java.lang.String mimeType)
          Output this object to the specified output stream.

 

Method Detail

generateContentType

java.lang.String generateContentType(boolean useStandardContentTypes)
Returns the content type of this smime object.
Parameters:
useStandardContentTypes - If true the standard content type is generated; If false the experimental content type is generated.
Returns:
The content type string.

generateContentType

java.lang.String generateContentType()
Returns the content type of this smime object.
Returns:
The content type string.

writeTo

void writeTo(java.io.OutputStream os,
             java.lang.String mimeType)
             throws java.io.IOException,
                    MessagingException
Output this object to the specified output stream.
Parameters:
os - The output stream.
mimeType - The mime-type of the smime object.
Throws:
java.io.IOException - An I/O error occurred.
MessagingException - An error occurred while writing the smime message.

Skip navigation links

Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10672-03


Copyright © 2005, 2011 , Oracle. All rights reserved.