|
Oracle Security Developer Tools S/MIME Java API Reference 11g (11.1.1) E10672-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.smime.SmimeDataContentHandler
public class SmimeDataContentHandler
A DataContentHandler to handle Smime messages.
| Constructor Summary | |
|---|---|
SmimeDataContentHandler() |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent(javax.activation.DataSource ds)Returns the appropriate SmimeObject from the DataSource. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor, javax.activation.DataSource source)Data transfer not supported. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()Data transfer not supported. |
void |
writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os)Output the SmimeObject to the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmimeDataContentHandler()
| Method Detail |
|---|
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface javax.activation.DataContentHandler
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor,
javax.activation.DataSource source)
throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData in interface javax.activation.DataContentHandlerjava.awt.datatransfer.UnsupportedFlavorException
public java.lang.Object getContent(javax.activation.DataSource ds)
throws java.io.IOException
SmimeObject from the DataSource.
If the content type params for a signed receipt are missing a SmimeSigned is returned.
getContent in interface javax.activation.DataContentHandlerds - The data source.SmimeSigned or SmimeMultipartSigned or SmimeEnveloped or SmimeSignedReceipt Object.java.io.IOException - If the input is not a S/MIME message or the input encoding is incorrect or an I/O error occurs.
public void writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
throws java.io.IOException
SmimeObject to the specified output stream.writeTo in interface javax.activation.DataContentHandlerobj - An SmimeObject.mimeType - The mime-type of the SmimeObject.os - The output stream.An - I/O error occurred or the SmimeObject has not been properly initialized.java.io.IOException
|
Oracle Security Developer Tools S/MIME Java API Reference 11g (11.1.1) E10672-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||