    001package org.apache.commons.ssl.asn1;
    002
    003import java.io.IOException;
    004
    005public class BERSequenceParser
    006    implements ASN1SequenceParser {
    007    private ASN1ObjectParser _parser;
    008
    009    BERSequenceParser(ASN1ObjectParser parser) {
    010        this._parser = parser;
    011    }
    012
    013    public DEREncodable readObject()
    014        throws IOException {
    015        return _parser.readObject();
    016    }
    017
    018    public DERObject getDERObject() {
    019        return new BERSequence(_parser.readVector());
    020    }
    021}