45 lines
1.3 KiB
Java
45 lines
1.3 KiB
Java
|
package org.bouncycastle.asn1.ocsp;
|
||
|
|
||
|
import java.math.BigInteger;
|
||
|
import org.bouncycastle.asn1.ASN1Enumerated;
|
||
|
import org.bouncycastle.asn1.ASN1Object;
|
||
|
import org.bouncycastle.asn1.ASN1Primitive;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class OCSPResponseStatus extends ASN1Object {
|
||
|
public static final int INTERNAL_ERROR = 2;
|
||
|
public static final int MALFORMED_REQUEST = 1;
|
||
|
public static final int SIG_REQUIRED = 5;
|
||
|
public static final int SUCCESSFUL = 0;
|
||
|
public static final int TRY_LATER = 3;
|
||
|
public static final int UNAUTHORIZED = 6;
|
||
|
private ASN1Enumerated value;
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
return this.value;
|
||
|
}
|
||
|
|
||
|
public BigInteger getValue() {
|
||
|
return this.value.getValue();
|
||
|
}
|
||
|
|
||
|
public static OCSPResponseStatus getInstance(Object obj) {
|
||
|
if (obj instanceof OCSPResponseStatus) {
|
||
|
return (OCSPResponseStatus) obj;
|
||
|
}
|
||
|
if (obj != null) {
|
||
|
return new OCSPResponseStatus(ASN1Enumerated.getInstance(obj));
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
private OCSPResponseStatus(ASN1Enumerated aSN1Enumerated) {
|
||
|
this.value = aSN1Enumerated;
|
||
|
}
|
||
|
|
||
|
public OCSPResponseStatus(int i) {
|
||
|
this(new ASN1Enumerated(i));
|
||
|
}
|
||
|
}
|