Home
last modified time | relevance | path

Searched refs:certSelector (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertSelectorTest.java32 X509CertSelector certSelector = new X509CertSelector(); in testMatchIpv4SubjectAlternativeName() local
33 certSelector.addSubjectAlternativeName(GeneralName.iPAddress, "127.0.0.1"); in testMatchIpv4SubjectAlternativeName()
36 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match))); in testMatchIpv4SubjectAlternativeName()
39 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch))); in testMatchIpv4SubjectAlternativeName()
43 X509CertSelector certSelector = new X509CertSelector(); in testMatchIpv4MappedSubjectAlternativeName() local
44 certSelector.addSubjectAlternativeName(GeneralName.iPAddress, "::ffff:127.0.0.1"); in testMatchIpv4MappedSubjectAlternativeName()
47 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match))); in testMatchIpv4MappedSubjectAlternativeName()
50 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch))); in testMatchIpv4MappedSubjectAlternativeName()
54 X509CertSelector certSelector = new X509CertSelector(); in testMatchIpv6SubjectAlternativeName() local
55 certSelector.setMatchAllSubjectAltNames(false); in testMatchIpv6SubjectAlternativeName()
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXParameters.java99 private CertSelector certSelector; field in PKIXParameters
631 if (certSelector != null) { in getTargetCertConstraints()
632 return (CertSelector) certSelector.clone(); in getTargetCertConstraints()
653 certSelector = (CertSelector) selector.clone(); in setTargetCertConstraints()
655 certSelector = null; in setTargetCertConstraints()
725 sb.append(" Target Cert Constraints: " + String.valueOf(certSelector) + "\n"); in toString()
/libcore/luni/src/test/java/tests/security/cert/
DCertStoreSpiTest.java55 CertSelector certSelector = new tmpCertSelector();//new in testCertStoreSpi01() local
65 .engineGetCertificates(certSelector)); in testCertStoreSpi01()