what-the-bank/sources/o/C15288gmc.java

58 lines
1.5 KiB
Java

package o;
import java.io.IOException;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DERTaggedObject;
/* renamed from: o.gmc, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15288gmc extends AbstractC15242glD {
String d;
C15288gmc() {
super(glS.OID);
}
/* JADX INFO: Access modifiers changed from: package-private */
public C15288gmc(String str) {
this();
this.d = str;
}
/* JADX INFO: Access modifiers changed from: package-private */
public C15288gmc(byte[] bArr) {
this();
this.d = ASN1ObjectIdentifier.getInstance(new DERTaggedObject(true, 0, new DEROctetString(bArr)), false).getId();
}
@Override // o.AbstractC15242glD
protected final byte[] a() {
try {
byte[] encoded = new ASN1ObjectIdentifier(this.d).getEncoded();
int length = encoded.length - 2;
byte[] bArr = new byte[length];
System.arraycopy(encoded, 2, bArr, 0, length);
return bArr;
} catch (IOException e) {
throw new RuntimeException(e.getMessage());
}
}
public final boolean equals(Object obj) {
if (obj instanceof C15288gmc) {
return this.d.equals(((C15288gmc) obj).d);
}
return false;
}
public final String toString() {
return this.d;
}
@Override // o.AbstractC15242glD
protected final String d() {
return this.d;
}
}