Bouncy Castle Cryptography 1.71

org.bouncycastle.cms.jcajce
Class ZlibExpanderProvider

java.lang.Object
  |
  +--org.bouncycastle.cms.jcajce.ZlibExpanderProvider

public class ZlibExpanderProvider
extends java.lang.Object
implements org.bouncycastle.operator.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
 org.bouncycastle.operator.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 org.bouncycastle.operator.InputExpander get(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
Specified by:
get in interface org.bouncycastle.operator.InputExpanderProvider

Bouncy Castle Cryptography 1.71