|
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.compressedData.CompressedDataOutputStreamDemo
public class CompressedDataOutputStreamDemo
Demonstrates the usage of class CompressedDataOutputStream
and
CompressedDataOutputStream
for compressing data using
the CMS type CompressedData.
CompressedDataOutputStream
,
CompressedDataStream
Constructor Summary | |
---|---|
CompressedDataOutputStreamDemo()
Default constructor. |
Method Summary | |
---|---|
byte[] |
createCompressedData(byte[] message)
Uses the IAIK-CMS CompressedDataOutputStream class to create a CMS CompressedData object for compressing the given message. |
byte[] |
getCompressedData(byte[] encoding)
Parses a CMS CompressedData object. |
static void |
main(java.lang.String[] argv)
Main method. |
void |
start()
Starts the demo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompressedDataOutputStreamDemo()
Method Detail |
---|
public byte[] createCompressedData(byte[] message) throws iaik.cms.CMSException, java.io.IOException
CompressedData
object for compressing the given message.
message
- the message to be compressed, as byte representation
CompressedData
object just created
iaik.cms.CMSException
- if the CompressedData
object cannot
be created
java.io.IOException
- if an I/O error occurspublic byte[] getCompressedData(byte[] encoding) throws iaik.cms.CMSException, java.io.IOException, java.security.NoSuchAlgorithmException
CompressedData
object.
encoding
- the CompressedData
object as BER encoded byte array
iaik.cms.CMSException
- if the CompressedData cannot be parsed
java.io.IOException
- if an I/O error occurs
java.security.NoSuchAlgorithmException
- if the compression algorithm is not supportedpublic 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 |
![]() |