Example usage for org.bouncycastle.asn1 ASN1InputStream subclass-usage

List of usage examples for org.bouncycastle.asn1 ASN1InputStream subclass-usage

Introduction

In this page you can find the example usage for org.bouncycastle.asn1 ASN1InputStream subclass-usage.

Usage

From source file org.ejbca.ui.web.LimitLengthASN1Reader.java

/** Helper class used all bytes for the first ASN.1 object in the stream. 
 * Limits the size that is ever read to MAX_REQUEST_SIZE. This class is used for example to read requests from POSTs to servlets, 
 * when you want to make sure that you never read too many bytes that might have been sent by an attacker.
 * Can only be used to read ASN.1 sequences, will throw MalformedException if first tag is not a sequence.
 * Example usage:
 * <pre>