kz.gamma.cms
Class CMSCompressedDataGenerator
java.lang.Object
kz.gamma.cms.CMSCompressedDataGenerator
public class CMSCompressedDataGenerator
- extends java.lang.Object
General class for generating a compressed CMS message.
A simple example of usage.
CMSCompressedDataGenerator fact = new CMSCompressedDataGenerator();
CMSCompressedData data = fact.generate(content, algorithm);
|
Field Summary |
static java.lang.String |
ZLIB
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZLIB
public static final java.lang.String ZLIB
- See Also:
- Constant Field Values
CMSCompressedDataGenerator
public CMSCompressedDataGenerator()
- base constructor
makeObj
private DERObject makeObj(byte[] encoding)
throws java.io.IOException
- Throws:
java.io.IOException
makeAlgId
private AlgorithmIdentifier makeAlgId(java.lang.String oid,
byte[] params)
throws java.io.IOException
- Throws:
java.io.IOException
generate
public CMSCompressedData generate(CMSProcessable content,
java.lang.String compressionOID)
throws CMSException
- generate an object that contains an CMS Compressed Data
- Throws:
CMSException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.