Bouncy Castle Cryptography Library 1.79

org.bouncycastle.cms.jcajce
Class ZlibExpanderProvider

java.lang.Object
  |
  +--org.bouncycastle.cms.jcajce.ZlibExpanderProvider
All Implemented Interfaces:
InputExpanderProvider

public class ZlibExpanderProvider
extends java.lang.Object
implements InputExpanderProvider


Constructor Summary
ZlibExpanderProvider()
          Base constructor.
ZlibExpanderProvider(long limit)
          Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed.
 
Method Summary
 InputExpander get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZlibExpanderProvider

public ZlibExpanderProvider()
Base constructor. Create an expander which will not limit the size of any objects expanded in the stream.

ZlibExpanderProvider

public ZlibExpanderProvider(long limit)
Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed.
Parameters:
limit - max number of bytes allowed in an expanded stream.
Method Detail

get

public InputExpander get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
Specified by:
get in interface InputExpanderProvider

Bouncy Castle Cryptography Library 1.79