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

45 lines
1.4 KiB
Java

package org.bouncycastle.asn1.cms;
import org.bouncycastle.asn1.ASN1Choice;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERTaggedObject;
/* loaded from: classes6.dex */
public class Evidence extends ASN1Object implements ASN1Choice {
private TimeStampTokenEvidence tstEvidence;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
if (this.tstEvidence != null) {
return new DERTaggedObject(false, 0, this.tstEvidence);
}
return null;
}
public TimeStampTokenEvidence getTstEvidence() {
return this.tstEvidence;
}
public static Evidence getInstance(Object obj) {
if (obj == null || (obj instanceof Evidence)) {
return (Evidence) obj;
}
if (obj instanceof ASN1TaggedObject) {
return new Evidence(ASN1TaggedObject.getInstance(obj));
}
throw new IllegalArgumentException("unknown object in getInstance");
}
public Evidence(TimeStampTokenEvidence timeStampTokenEvidence) {
this.tstEvidence = timeStampTokenEvidence;
}
private Evidence(ASN1TaggedObject aSN1TaggedObject) {
if (aSN1TaggedObject.getTagNo() == 0) {
this.tstEvidence = TimeStampTokenEvidence.getInstance(aSN1TaggedObject, false);
}
}
}