what-the-bank/sources/org/bouncycastle/asn1/ess/ContentIdentifier.java

39 lines
1.0 KiB
Java

package org.bouncycastle.asn1.ess;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.DEROctetString;
/* loaded from: classes6.dex */
public class ContentIdentifier extends ASN1Object {
ASN1OctetString value;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.value;
}
public ASN1OctetString getValue() {
return this.value;
}
public static ContentIdentifier getInstance(Object obj) {
if (obj instanceof ContentIdentifier) {
return (ContentIdentifier) obj;
}
if (obj != null) {
return new ContentIdentifier(ASN1OctetString.getInstance(obj));
}
return null;
}
public ContentIdentifier(byte[] bArr) {
this(new DEROctetString(bArr));
}
private ContentIdentifier(ASN1OctetString aSN1OctetString) {
this.value = aSN1OctetString;
}
}