what-the-bank/sources/org/bouncycastle/asn1/cms/OtherRevocationInfoFormat.java

57 lines
2.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.cms;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;
/* loaded from: classes6.dex */
public class OtherRevocationInfoFormat extends ASN1Object {
private ASN1Encodable otherRevInfo;
private ASN1ObjectIdentifier otherRevInfoFormat;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
aSN1EncodableVector.add(this.otherRevInfoFormat);
aSN1EncodableVector.add(this.otherRevInfo);
return new DERSequence(aSN1EncodableVector);
}
public ASN1ObjectIdentifier getInfoFormat() {
return this.otherRevInfoFormat;
}
public ASN1Encodable getInfo() {
return this.otherRevInfo;
}
public static OtherRevocationInfoFormat getInstance(ASN1TaggedObject aSN1TaggedObject, boolean z) {
return getInstance(ASN1Sequence.getInstance(aSN1TaggedObject, z));
}
public static OtherRevocationInfoFormat getInstance(Object obj) {
if (obj instanceof OtherRevocationInfoFormat) {
return (OtherRevocationInfoFormat) obj;
}
if (obj != null) {
return new OtherRevocationInfoFormat(ASN1Sequence.getInstance(obj));
}
return null;
}
private OtherRevocationInfoFormat(ASN1Sequence aSN1Sequence) {
this.otherRevInfoFormat = ASN1ObjectIdentifier.getInstance(aSN1Sequence.getObjectAt(0));
this.otherRevInfo = aSN1Sequence.getObjectAt(1);
}
public OtherRevocationInfoFormat(ASN1ObjectIdentifier aSN1ObjectIdentifier, ASN1Encodable aSN1Encodable) {
this.otherRevInfoFormat = aSN1ObjectIdentifier;
this.otherRevInfo = aSN1Encodable;
}
}