84 lines
2.8 KiB
Java
84 lines
2.8 KiB
Java
package org.bouncycastle.asn1.dvcs;
|
|
|
|
import org.bouncycastle.asn1.ASN1EncodableVector;
|
|
import org.bouncycastle.asn1.ASN1Object;
|
|
import org.bouncycastle.asn1.ASN1Primitive;
|
|
import org.bouncycastle.asn1.ASN1Sequence;
|
|
import org.bouncycastle.asn1.ASN1TaggedObject;
|
|
import org.bouncycastle.asn1.DERSequence;
|
|
import org.bouncycastle.asn1.cmp.PKIStatusInfo;
|
|
import org.bouncycastle.asn1.x509.GeneralName;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class DVCSErrorNotice extends ASN1Object {
|
|
private GeneralName transactionIdentifier;
|
|
private PKIStatusInfo transactionStatus;
|
|
|
|
public String toString() {
|
|
String str;
|
|
StringBuilder sb = new StringBuilder("DVCSErrorNotice {\ntransactionStatus: ");
|
|
sb.append(this.transactionStatus);
|
|
sb.append("\n");
|
|
if (this.transactionIdentifier != null) {
|
|
StringBuilder sb2 = new StringBuilder("transactionIdentifier: ");
|
|
sb2.append(this.transactionIdentifier);
|
|
sb2.append("\n");
|
|
str = sb2.toString();
|
|
} else {
|
|
str = "";
|
|
}
|
|
sb.append(str);
|
|
sb.append("}\n");
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
|
public ASN1Primitive toASN1Primitive() {
|
|
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
|
|
aSN1EncodableVector.add(this.transactionStatus);
|
|
GeneralName generalName = this.transactionIdentifier;
|
|
if (generalName != null) {
|
|
aSN1EncodableVector.add(generalName);
|
|
}
|
|
return new DERSequence(aSN1EncodableVector);
|
|
}
|
|
|
|
public PKIStatusInfo getTransactionStatus() {
|
|
return this.transactionStatus;
|
|
}
|
|
|
|
public GeneralName getTransactionIdentifier() {
|
|
return this.transactionIdentifier;
|
|
}
|
|
|
|
public static DVCSErrorNotice getInstance(ASN1TaggedObject aSN1TaggedObject, boolean z) {
|
|
return getInstance(ASN1Sequence.getInstance(aSN1TaggedObject, z));
|
|
}
|
|
|
|
public static DVCSErrorNotice getInstance(Object obj) {
|
|
if (obj instanceof DVCSErrorNotice) {
|
|
return (DVCSErrorNotice) obj;
|
|
}
|
|
if (obj != null) {
|
|
return new DVCSErrorNotice(ASN1Sequence.getInstance(obj));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public DVCSErrorNotice(PKIStatusInfo pKIStatusInfo, GeneralName generalName) {
|
|
this.transactionStatus = pKIStatusInfo;
|
|
this.transactionIdentifier = generalName;
|
|
}
|
|
|
|
public DVCSErrorNotice(PKIStatusInfo pKIStatusInfo) {
|
|
this(pKIStatusInfo, null);
|
|
}
|
|
|
|
private DVCSErrorNotice(ASN1Sequence aSN1Sequence) {
|
|
this.transactionStatus = PKIStatusInfo.getInstance(aSN1Sequence.getObjectAt(0));
|
|
if (aSN1Sequence.size() > 1) {
|
|
this.transactionIdentifier = GeneralName.getInstance(aSN1Sequence.getObjectAt(1));
|
|
}
|
|
}
|
|
}
|