what-the-bank/sources/org/bouncycastle/asn1/DEROutputStream.java

32 lines
985 B
Java

package org.bouncycastle.asn1;
import java.io.IOException;
import java.io.OutputStream;
/* loaded from: classes6.dex */
public class DEROutputStream extends ASN1OutputStream {
/* JADX INFO: Access modifiers changed from: package-private */
@Override // org.bouncycastle.asn1.ASN1OutputStream
public ASN1OutputStream getDERSubStream() {
return this;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // org.bouncycastle.asn1.ASN1OutputStream
public ASN1OutputStream getDLSubStream() {
return this;
}
@Override // org.bouncycastle.asn1.ASN1OutputStream
public void writeObject(ASN1Encodable aSN1Encodable) throws IOException {
if (aSN1Encodable == null) {
throw new IOException("null object detected");
}
aSN1Encodable.toASN1Primitive().toDERObject().encode(this);
}
public DEROutputStream(OutputStream outputStream) {
super(outputStream);
}
}