Class DerParser


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class DerParser
    extends Object
    A bare-minimum ASN.1 DER decoder, just having enough functions to decode PKCS#1 private keys. Especially, it doesn't handle explicitly tagged types with an outer tag.

    This parser can only handle one layer. To parse nested constructs, get a new parser for each layer using Asn1Object.getParser().

    There are many DER decoders in JRE but using them will tie this program to a specific JCE/JVM.

    Author:
    zhang