243 lines
7.6 KiB
Java
243 lines
7.6 KiB
Java
package o;
|
|
|
|
import java.io.IOException;
|
|
import java.math.BigInteger;
|
|
import java.security.InvalidKeyException;
|
|
import java.security.NoSuchAlgorithmException;
|
|
import java.security.NoSuchProviderException;
|
|
import java.security.Principal;
|
|
import java.security.Provider;
|
|
import java.security.PublicKey;
|
|
import java.security.Signature;
|
|
import java.security.SignatureException;
|
|
import java.security.cert.CRLException;
|
|
import java.security.cert.Certificate;
|
|
import java.security.cert.X509CRL;
|
|
import java.security.cert.X509CRLEntry;
|
|
import java.util.Date;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
import javax.security.auth.x500.X500Principal;
|
|
|
|
/* renamed from: o.grs, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15491grs extends X509CRL {
|
|
private byte[] a;
|
|
private int b;
|
|
private gpA c;
|
|
private String d;
|
|
private boolean e;
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final byte[] getSigAlgParams() {
|
|
return null;
|
|
}
|
|
|
|
public static boolean a(X509CRL x509crl) throws CRLException {
|
|
try {
|
|
byte[] extensionValue = x509crl.getExtensionValue(C15394gpK.f9146o.d);
|
|
if (extensionValue != null) {
|
|
byte[] b = gnD.b((Object) extensionValue).b();
|
|
if ((b != null ? new gpV(AbstractC15317gnH.a(b)) : null).d) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
} catch (Exception e) {
|
|
throw new C15431gqZ("Exception reading IssuingDistributionPoint", e);
|
|
}
|
|
}
|
|
|
|
@Override // java.security.cert.X509Extension
|
|
public final boolean hasUnsupportedCriticalExtension() {
|
|
Set criticalExtensionOIDs = getCriticalExtensionOIDs();
|
|
if (criticalExtensionOIDs == null) {
|
|
return false;
|
|
}
|
|
criticalExtensionOIDs.remove(C15492grt.j);
|
|
criticalExtensionOIDs.remove(C15492grt.e);
|
|
return !criticalExtensionOIDs.isEmpty();
|
|
}
|
|
|
|
@Override // java.security.cert.X509Extension
|
|
public final byte[] getExtensionValue(String str) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final byte[] getEncoded() throws CRLException {
|
|
try {
|
|
throw new NullPointerException();
|
|
} catch (IOException e) {
|
|
throw new CRLException(e.toString());
|
|
}
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final void verify(PublicKey publicKey) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException {
|
|
try {
|
|
Signature.getInstance(getSigAlgName(), "SC");
|
|
} catch (Exception unused) {
|
|
Signature.getInstance(getSigAlgName());
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final void verify(PublicKey publicKey, String str) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException {
|
|
if (str != null) {
|
|
Signature.getInstance(getSigAlgName(), str);
|
|
} else {
|
|
Signature.getInstance(getSigAlgName());
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final void verify(PublicKey publicKey, Provider provider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException {
|
|
if (provider != null) {
|
|
Signature.getInstance(getSigAlgName(), provider);
|
|
} else {
|
|
Signature.getInstance(getSigAlgName());
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final int getVersion() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final Principal getIssuerDN() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final X500Principal getIssuerX500Principal() {
|
|
try {
|
|
throw new NullPointerException();
|
|
} catch (IOException unused) {
|
|
throw new IllegalStateException("can't encode issuer DN");
|
|
}
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final Date getThisUpdate() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final Date getNextUpdate() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final X509CRLEntry getRevokedCertificate(BigInteger bigInteger) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final byte[] getTBSCertList() throws CRLException {
|
|
try {
|
|
throw new NullPointerException();
|
|
} catch (IOException e) {
|
|
throw new CRLException(e.toString());
|
|
}
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final byte[] getSignature() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final String getSigAlgOID() {
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.CRL
|
|
public final String toString() {
|
|
StringBuffer stringBuffer = new StringBuffer(" Version: ");
|
|
String b = grR.b();
|
|
stringBuffer.append(getVersion()).append(b);
|
|
stringBuffer.append(" IssuerDN: ").append(getIssuerDN()).append(b);
|
|
stringBuffer.append(" This update: ").append(getThisUpdate()).append(b);
|
|
stringBuffer.append(" Next update: ").append(getNextUpdate()).append(b);
|
|
stringBuffer.append(" Signature Algorithm: ").append(getSigAlgName()).append(b);
|
|
byte[] signature = getSignature();
|
|
stringBuffer.append(" Signature: ").append(new String(grS.e(signature, 0, 20))).append(b);
|
|
for (int i = 20; i < signature.length; i += 20) {
|
|
if (i < signature.length - 20) {
|
|
stringBuffer.append(" ").append(new String(grS.e(signature, i, 20))).append(b);
|
|
} else {
|
|
stringBuffer.append(" ").append(new String(grS.e(signature, i, signature.length - i))).append(b);
|
|
}
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.CRL
|
|
public final boolean isRevoked(Certificate certificate) {
|
|
if (!certificate.getType().equals("X.509")) {
|
|
throw new RuntimeException("X.509 CRL used with non X.509 Cert");
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof X509CRL)) {
|
|
return false;
|
|
}
|
|
if (obj instanceof C15491grs) {
|
|
C15491grs c15491grs = (C15491grs) obj;
|
|
if (this.e && c15491grs.e && c15491grs.b != this.b) {
|
|
return false;
|
|
}
|
|
gpA gpa = c15491grs.c;
|
|
throw null;
|
|
}
|
|
return super.equals(obj);
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final int hashCode() {
|
|
if (!this.e) {
|
|
this.e = true;
|
|
this.b = super.hashCode();
|
|
}
|
|
return this.b;
|
|
}
|
|
|
|
@Override // java.security.cert.X509Extension
|
|
public final Set getCriticalExtensionOIDs() {
|
|
if (getVersion() != 2) {
|
|
return null;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509Extension
|
|
public final Set getNonCriticalExtensionOIDs() {
|
|
if (getVersion() != 2) {
|
|
return null;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final Set getRevokedCertificates() {
|
|
new HashSet();
|
|
throw null;
|
|
}
|
|
|
|
@Override // java.security.cert.X509CRL
|
|
public final String getSigAlgName() {
|
|
return this.d;
|
|
}
|
|
}
|