what-the-bank/sources/org/bouncycastle/asn1/cmp/CAKeyUpdAnnContent.java

58 lines
2.0 KiB
Java

package org.bouncycastle.asn1.cmp;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERSequence;
/* loaded from: classes6.dex */
public class CAKeyUpdAnnContent extends ASN1Object {
private CMPCertificate newWithNew;
private CMPCertificate newWithOld;
private CMPCertificate oldWithNew;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
aSN1EncodableVector.add(this.oldWithNew);
aSN1EncodableVector.add(this.newWithOld);
aSN1EncodableVector.add(this.newWithNew);
return new DERSequence(aSN1EncodableVector);
}
public CMPCertificate getOldWithNew() {
return this.oldWithNew;
}
public CMPCertificate getNewWithOld() {
return this.newWithOld;
}
public CMPCertificate getNewWithNew() {
return this.newWithNew;
}
public static CAKeyUpdAnnContent getInstance(Object obj) {
if (obj instanceof CAKeyUpdAnnContent) {
return (CAKeyUpdAnnContent) obj;
}
if (obj != null) {
return new CAKeyUpdAnnContent(ASN1Sequence.getInstance(obj));
}
return null;
}
public CAKeyUpdAnnContent(CMPCertificate cMPCertificate, CMPCertificate cMPCertificate2, CMPCertificate cMPCertificate3) {
this.oldWithNew = cMPCertificate;
this.newWithOld = cMPCertificate2;
this.newWithNew = cMPCertificate3;
}
private CAKeyUpdAnnContent(ASN1Sequence aSN1Sequence) {
this.oldWithNew = CMPCertificate.getInstance(aSN1Sequence.getObjectAt(0));
this.newWithOld = CMPCertificate.getInstance(aSN1Sequence.getObjectAt(1));
this.newWithNew = CMPCertificate.getInstance(aSN1Sequence.getObjectAt(2));
}
}