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

53 lines
1.8 KiB
Java

package org.bouncycastle.asn1.cmp;
import java.math.BigInteger;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
/* loaded from: classes6.dex */
public class PKIStatus extends ASN1Object {
public static final int GRANTED = 0;
public static final int GRANTED_WITH_MODS = 1;
public static final int KEY_UPDATE_WARNING = 6;
public static final int REJECTION = 2;
public static final int REVOCATION_NOTIFICATION = 5;
public static final int REVOCATION_WARNING = 4;
public static final int WAITING = 3;
private ASN1Integer value;
public static final PKIStatus granted = new PKIStatus(0);
public static final PKIStatus grantedWithMods = new PKIStatus(1);
public static final PKIStatus rejection = new PKIStatus(2);
public static final PKIStatus waiting = new PKIStatus(3);
public static final PKIStatus revocationWarning = new PKIStatus(4);
public static final PKIStatus revocationNotification = new PKIStatus(5);
public static final PKIStatus keyUpdateWaiting = new PKIStatus(6);
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.value;
}
public BigInteger getValue() {
return this.value.getValue();
}
public static PKIStatus getInstance(Object obj) {
if (obj instanceof PKIStatus) {
return (PKIStatus) obj;
}
if (obj != null) {
return new PKIStatus(ASN1Integer.getInstance(obj));
}
return null;
}
private PKIStatus(ASN1Integer aSN1Integer) {
this.value = aSN1Integer;
}
private PKIStatus(int i) {
this(new ASN1Integer(i));
}
}