01: package org.bouncycastle.asn1;
02:
03: import java.io.IOException;
04:
05: public class BERSetParser implements ASN1SetParser {
06: private ASN1ObjectParser _parser;
07:
08: BERSetParser(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 BERSet(_parser.readVector());
18: }
19: }
|