what-the-bank/sources/org/bouncycastle/asn1/smime/SMIMECapabilityVector.java

35 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.smime;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.DERSequence;
/* loaded from: classes6.dex */
public class SMIMECapabilityVector {
private ASN1EncodableVector capabilities = new ASN1EncodableVector();
public ASN1EncodableVector toASN1EncodableVector() {
return this.capabilities;
}
public void addCapability(ASN1ObjectIdentifier aSN1ObjectIdentifier, ASN1Encodable aSN1Encodable) {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
aSN1EncodableVector.add(aSN1ObjectIdentifier);
aSN1EncodableVector.add(aSN1Encodable);
this.capabilities.add(new DERSequence(aSN1EncodableVector));
}
public void addCapability(ASN1ObjectIdentifier aSN1ObjectIdentifier, int i) {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
aSN1EncodableVector.add(aSN1ObjectIdentifier);
aSN1EncodableVector.add(new ASN1Integer(i));
this.capabilities.add(new DERSequence(aSN1EncodableVector));
}
public void addCapability(ASN1ObjectIdentifier aSN1ObjectIdentifier) {
this.capabilities.add(new DERSequence(aSN1ObjectIdentifier));
}
}