54 lines
2.7 KiB
Java
54 lines
2.7 KiB
Java
package o;
|
|
|
|
import java.io.IOException;
|
|
import java.security.cert.Certificate;
|
|
import java.security.cert.X509CertSelector;
|
|
import java.security.cert.X509Certificate;
|
|
|
|
/* renamed from: o.gsh, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15512gsh extends X509CertSelector implements InterfaceC15467grM {
|
|
@Override // java.security.cert.X509CertSelector, java.security.cert.CertSelector, o.InterfaceC15467grM
|
|
public final Object clone() {
|
|
return (C15512gsh) super.clone();
|
|
}
|
|
|
|
public static C15512gsh d(X509CertSelector x509CertSelector) {
|
|
if (x509CertSelector == null) {
|
|
throw new IllegalArgumentException("cannot create from null selector");
|
|
}
|
|
C15512gsh c15512gsh = new C15512gsh();
|
|
c15512gsh.setAuthorityKeyIdentifier(x509CertSelector.getAuthorityKeyIdentifier());
|
|
c15512gsh.setBasicConstraints(x509CertSelector.getBasicConstraints());
|
|
c15512gsh.setCertificate(x509CertSelector.getCertificate());
|
|
c15512gsh.setCertificateValid(x509CertSelector.getCertificateValid());
|
|
c15512gsh.setMatchAllSubjectAltNames(x509CertSelector.getMatchAllSubjectAltNames());
|
|
try {
|
|
c15512gsh.setPathToNames(x509CertSelector.getPathToNames());
|
|
c15512gsh.setExtendedKeyUsage(x509CertSelector.getExtendedKeyUsage());
|
|
c15512gsh.setNameConstraints(x509CertSelector.getNameConstraints());
|
|
c15512gsh.setPolicy(x509CertSelector.getPolicy());
|
|
c15512gsh.setSubjectPublicKeyAlgID(x509CertSelector.getSubjectPublicKeyAlgID());
|
|
c15512gsh.setSubjectAlternativeNames(x509CertSelector.getSubjectAlternativeNames());
|
|
c15512gsh.setIssuer(x509CertSelector.getIssuer());
|
|
c15512gsh.setKeyUsage(x509CertSelector.getKeyUsage());
|
|
c15512gsh.setPrivateKeyValid(x509CertSelector.getPrivateKeyValid());
|
|
c15512gsh.setSerialNumber(x509CertSelector.getSerialNumber());
|
|
c15512gsh.setSubject(x509CertSelector.getSubject());
|
|
c15512gsh.setSubjectKeyIdentifier(x509CertSelector.getSubjectKeyIdentifier());
|
|
c15512gsh.setSubjectPublicKey(x509CertSelector.getSubjectPublicKey());
|
|
return c15512gsh;
|
|
} catch (IOException e) {
|
|
throw new IllegalArgumentException("error in passed in selector: ".concat(String.valueOf(e)));
|
|
}
|
|
}
|
|
|
|
@Override // java.security.cert.X509CertSelector, java.security.cert.CertSelector
|
|
public final boolean match(Certificate certificate) {
|
|
if (certificate instanceof X509Certificate) {
|
|
return super.match((X509Certificate) certificate);
|
|
}
|
|
return false;
|
|
}
|
|
}
|