package org.bouncycastle.asn1; import java.io.IOException; /* loaded from: classes6.dex */ public class DERSetParser implements ASN1SetParser { private ASN1StreamParser _parser; @Override // org.bouncycastle.asn1.ASN1Encodable public ASN1Primitive toASN1Primitive() { try { return getLoadedObject(); } catch (IOException e) { throw new ASN1ParsingException(e.getMessage(), e); } } @Override // org.bouncycastle.asn1.ASN1SetParser public ASN1Encodable readObject() throws IOException { return this._parser.readObject(); } @Override // org.bouncycastle.asn1.InMemoryRepresentable public ASN1Primitive getLoadedObject() throws IOException { return new DERSet(this._parser.readVector(), false); } /* JADX INFO: Access modifiers changed from: package-private */ public DERSetParser(ASN1StreamParser aSN1StreamParser) { this._parser = aSN1StreamParser; } }