35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
|
package org.bouncycastle.asn1;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class BERApplicationSpecificParser implements ASN1ApplicationSpecificParser {
|
||
|
private final ASN1StreamParser parser;
|
||
|
private final int tag;
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
try {
|
||
|
return getLoadedObject();
|
||
|
} catch (IOException e) {
|
||
|
throw new ASN1ParsingException(e.getMessage(), e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1ApplicationSpecificParser
|
||
|
public ASN1Encodable readObject() throws IOException {
|
||
|
return this.parser.readObject();
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.InMemoryRepresentable
|
||
|
public ASN1Primitive getLoadedObject() throws IOException {
|
||
|
return new BERApplicationSpecific(this.tag, this.parser.readVector());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public BERApplicationSpecificParser(int i, ASN1StreamParser aSN1StreamParser) {
|
||
|
this.tag = i;
|
||
|
this.parser = aSN1StreamParser;
|
||
|
}
|
||
|
}
|