what-the-bank/sources/org/bouncycastle/asn1/cmp/POPODecKeyRespContent.java

40 lines
1.2 KiB
Java

package org.bouncycastle.asn1.cmp;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
/* loaded from: classes6.dex */
public class POPODecKeyRespContent extends ASN1Object {
private ASN1Sequence content;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.content;
}
public ASN1Integer[] toASN1IntegerArray() {
int size = this.content.size();
ASN1Integer[] aSN1IntegerArr = new ASN1Integer[size];
for (int i = 0; i != size; i++) {
aSN1IntegerArr[i] = ASN1Integer.getInstance(this.content.getObjectAt(i));
}
return aSN1IntegerArr;
}
public static POPODecKeyRespContent getInstance(Object obj) {
if (obj instanceof POPODecKeyRespContent) {
return (POPODecKeyRespContent) obj;
}
if (obj != null) {
return new POPODecKeyRespContent(ASN1Sequence.getInstance(obj));
}
return null;
}
private POPODecKeyRespContent(ASN1Sequence aSN1Sequence) {
this.content = aSN1Sequence;
}
}