41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package org.bouncycastle.asn1.x509;
|
|
|
|
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 CRLNumber extends ASN1Object {
|
|
private BigInteger number;
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("CRLNumber: ");
|
|
sb.append(getCRLNumber());
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
|
public ASN1Primitive toASN1Primitive() {
|
|
return new ASN1Integer(this.number);
|
|
}
|
|
|
|
public BigInteger getCRLNumber() {
|
|
return this.number;
|
|
}
|
|
|
|
public static CRLNumber getInstance(Object obj) {
|
|
if (obj instanceof CRLNumber) {
|
|
return (CRLNumber) obj;
|
|
}
|
|
if (obj != null) {
|
|
return new CRLNumber(ASN1Integer.getInstance(obj).getValue());
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public CRLNumber(BigInteger bigInteger) {
|
|
this.number = bigInteger;
|
|
}
|
|
}
|