001 package org.apache.commons.ssl.asn1; 002 003 import java.io.IOException; 004 005 public class BERSetParser 006 implements ASN1SetParser { 007 private ASN1ObjectParser _parser; 008 009 BERSetParser(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 BERSet(_parser.readVector()); 020 } 021 }