01: package org.bouncycastle.asn1;
02:
03: import java.io.IOException;
04:
05: public class BERSequenceParser implements ASN1SequenceParser {
06: private ASN1ObjectParser _parser;
07:
08: BERSequenceParser(ASN1ObjectParser parser) {
09: this ._parser = parser;
10: }
11:
12: public DEREncodable readObject() throws IOException {
13: return _parser.readObject();
14: }
15:
16: public DERObject getDERObject() {
17: return new BERSequence(_parser.readVector());
18: }
19: }
|