.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
CertificatePoliciesExtension ext = ((X509CertImpl)cert).getCertificatePoliciesExtension(); List<PolicyInformation> policies = (List<PolicyInformation>)ext.get(CertificatePoliciesExtension.POLICIES); boolean evCert = false; for (PolicyInformation info : policies) { CertificatePolicyId id = info.getPolicyIdentifier(); if (isEVPolicy(id)) { evCert = true; break; } } ...... public static ObjectIdentifier[] EV_POLICIES; static { try { EV_POLICIES = new ObjectIdentifier[] { new ObjectIdentifier("2.16.840.1.113733.1.7.23.6"), // Verisign new ObjectIdentifier("1.3.6.1.4.1.14370.1.6"), // Geo-Trust of Verisign new ObjectIdentifier("2.16.840.1.113733.1.7.48.1") // Thawte }; } catch (IOException e) { throw new IllegalStateException("Invalid OIDs"); } } private boolean isEVPolicy(CertificatePolicyId id) { for (ObjectIdentifier oid : EV_POLICIES) { if (oid.equals((Object)id.getIdentifier())) return true; } return false; }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;