.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
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; }
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
.getPolicyInformations(); for (PolicyInformation policyInformation : policyInformations) { if (policies.contains(policyInformation.getPolicyIdentifier())) { break PASSED;
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("CertificatePolicies [\n"); for (PolicyInformation policyInformation : policyInformations) { sb.append(prefix); sb.append(" "); policyInformation.dumpValue(sb); sb.append('\n'); } sb.append(prefix).append("]\n"); }