|
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.DataOutputStreamDemo
public class DataOutputStreamDemo
Demonstrates the usage of class DataOutputStream
.
Constructor Summary | |
---|---|
DataOutputStreamDemo()
Default constructor. |
Method Summary | |
---|---|
byte[] |
createData(byte[] message)
Uses the IAIK-CMS DataOutputStream class to encode the given data. |
byte[] |
getData(byte[] data)
Parses a CMS Data object. |
static void |
main(java.lang.String[] argv)
Main method. |
void |
start()
Starts the tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataOutputStreamDemo() throws java.io.IOException
java.io.IOException
Method Detail |
---|
public byte[] createData(byte[] message) throws iaik.cms.CMSException, java.io.IOException
message
- the message to be encoded, as byte representation
Data
object just created,
wrapped in a ContentInfo
iaik.cms.CMSException
- if the Data
object cannot
be created
java.io.IOException
- if an I/O error occurspublic byte[] getData(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 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 |
![]() |