what-the-bank/sources/org/bouncycastle/asn1/x509/CertPolicyId.java

34 lines
929 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.x509;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.ASN1Primitive;
/* loaded from: classes6.dex */
public class CertPolicyId extends ASN1Object {
private ASN1ObjectIdentifier id;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.id;
}
public String getId() {
return this.id.getId();
}
public static CertPolicyId getInstance(Object obj) {
if (obj instanceof CertPolicyId) {
return (CertPolicyId) obj;
}
if (obj != null) {
return new CertPolicyId(ASN1ObjectIdentifier.getInstance(obj));
}
return null;
}
private CertPolicyId(ASN1ObjectIdentifier aSN1ObjectIdentifier) {
this.id = aSN1ObjectIdentifier;
}
}