33 lines
997 B
Java
33 lines
997 B
Java
|
package org.bouncycastle.asn1;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class BERSequenceParser implements ASN1SequenceParser {
|
||
|
private ASN1StreamParser _parser;
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
try {
|
||
|
return getLoadedObject();
|
||
|
} catch (IOException e) {
|
||
|
throw new IllegalStateException(e.getMessage());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1SequenceParser
|
||
|
public ASN1Encodable readObject() throws IOException {
|
||
|
return this._parser.readObject();
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.InMemoryRepresentable
|
||
|
public ASN1Primitive getLoadedObject() throws IOException {
|
||
|
return new BERSequence(this._parser.readVector());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public BERSequenceParser(ASN1StreamParser aSN1StreamParser) {
|
||
|
this._parser = aSN1StreamParser;
|
||
|
}
|
||
|
}
|