|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdemo.cms.data.DataDemo
public class DataDemo
Shows the usage of the IAIK-CMS Data(Stream) implementation.
| Constructor Summary | |
|---|---|
DataDemo()
Default constructor. |
|
| Method Summary | |
|---|---|
byte[] |
createData(byte[] message)
Creates a CMS Data object. |
byte[] |
createDataStream(byte[] message)
Creates a CMS Data object. |
byte[] |
getData(byte[] encoding)
Parses a CMS Data object. |
byte[] |
getDataStream(byte[] data)
Parses a CMS Data object. |
static void |
main(java.lang.String[] argv)
Main method. |
void |
start()
Tests IAIK CMS Data(Stream). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataDemo()
| Method Detail |
|---|
public byte[] createDataStream(byte[] message)
throws iaik.cms.CMSException,
java.io.IOException
Data object.
message - the message to be sent, as byte representation
Data object just created
iaik.cms.CMSException - if the Data object cannot
be created
java.io.IOException - if an I/O error occurs
public byte[] getDataStream(byte[] data)
throws iaik.cms.CMSException,
java.io.IOException
Data object.
data - the Data object as BER encoded byte array
iaik.cms.CMSException - if an parsing exception occurs
java.io.IOException - if an I/O error occurs
public byte[] createData(byte[] message)
throws iaik.cms.CMSException,
java.io.IOException
Data object.
message - the message to be sent, as byte representation
Data object just created
iaik.cms.CMSException - if the Data object cannot
be created
java.io.IOException - if an I/O error occurs
public byte[] getData(byte[] encoding)
throws iaik.cms.CMSException,
java.io.IOException
Data object.
encoding - the DER encoded Data object
iaik.cms.CMSException - if an parsing exception occurs
java.io.IOException - if an I/O error occurspublic void start()
public static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exception
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|