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

37 lines
1.1 KiB
Java

package org.bouncycastle.asn1.cmp;
import org.bouncycastle.asn1.ASN1Null;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.DERNull;
/* loaded from: classes6.dex */
public class PKIConfirmContent extends ASN1Object {
private ASN1Null val;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.val;
}
public static PKIConfirmContent getInstance(Object obj) {
if (obj == null || (obj instanceof PKIConfirmContent)) {
return (PKIConfirmContent) obj;
}
if (obj instanceof ASN1Null) {
return new PKIConfirmContent((ASN1Null) obj);
}
StringBuilder sb = new StringBuilder("Invalid object: ");
sb.append(obj.getClass().getName());
throw new IllegalArgumentException(sb.toString());
}
private PKIConfirmContent(ASN1Null aSN1Null) {
this.val = aSN1Null;
}
public PKIConfirmContent() {
this.val = DERNull.INSTANCE;
}
}