Decodes ASN.1/DER encoded types according to the rules set forth in ITU-T Recommendation X.690.
Decoders can be operated in two modi. The first mode just reads any ASN.1 type encountered in a stream and returns the instantiated objects. This mode is used if for instance method {@link #readType() readType()}is called.
The second mode matches the decoded data against an application-specified ASN.1 structure. Violations of the structure definition causes an exception being thrown.
@author Volker Roth
@author Stefan Endler
@version "$Id: DERDecoder.java,v 1.3 2007/08/11 18:21:50 sendler Exp $"