what-the-bank/sources/org/bouncycastle/asn1/esf/SigPolicyQualifierInfo.java

52 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.esf;
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.DERSequence;
/* loaded from: classes6.dex */
public class SigPolicyQualifierInfo extends ASN1Object {
private ASN1ObjectIdentifier sigPolicyQualifierId;
private ASN1Encodable sigQualifier;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
aSN1EncodableVector.add(this.sigPolicyQualifierId);
aSN1EncodableVector.add(this.sigQualifier);
return new DERSequence(aSN1EncodableVector);
}
public ASN1Encodable getSigQualifier() {
return this.sigQualifier;
}
public ASN1ObjectIdentifier getSigPolicyQualifierId() {
return new ASN1ObjectIdentifier(this.sigPolicyQualifierId.getId());
}
public static SigPolicyQualifierInfo getInstance(Object obj) {
if (obj instanceof SigPolicyQualifierInfo) {
return (SigPolicyQualifierInfo) obj;
}
if (obj != null) {
return new SigPolicyQualifierInfo(ASN1Sequence.getInstance(obj));
}
return null;
}
private SigPolicyQualifierInfo(ASN1Sequence aSN1Sequence) {
this.sigPolicyQualifierId = ASN1ObjectIdentifier.getInstance(aSN1Sequence.getObjectAt(0));
this.sigQualifier = aSN1Sequence.getObjectAt(1);
}
public SigPolicyQualifierInfo(ASN1ObjectIdentifier aSN1ObjectIdentifier, ASN1Encodable aSN1Encodable) {
this.sigPolicyQualifierId = aSN1ObjectIdentifier;
this.sigQualifier = aSN1Encodable;
}
}