@Override public String[] getNonCriticalExtensionOID() { ASN1ObjectIdentifier[] asnoids = this.extensions.getNonCriticalExtensionOIDs(); return toStringArray(asnoids); }
/** * Given a Bouncy Castle Extensions container, return a list of maps * representing all the X509 extensions embedded in the certificate. * * @param exts A Bouncy Castle Extensions container object. * @return A list of maps describing each extensions in the provided * certificate. * @throws IOException */ private static List<Map<String, Object>> getExtensionList(Extensions exts) throws IOException { List<Map<String, Object>> ret = new ArrayList<Map<String, Object>>(); for (ASN1ObjectIdentifier oid : exts.getCriticalExtensionOIDs()) { ret.add(makeExtensionMap(exts, oid, true)); } for (ASN1ObjectIdentifier oid : exts.getNonCriticalExtensionOIDs()) { ret.add(makeExtensionMap(exts, oid, false)); } return ret; }
/** * Given a Bouncy Castle Extensions container, return a list of maps * representing all the X509 extensions embedded in the certificate. * * @param exts A Bouncy Castle Extensions container object. * @return A list of maps describing each extensions in the provided * certificate. * @throws IOException */ private static List<Map<String, Object>> getExtensionList(Extensions exts) throws IOException { List<Map<String, Object>> ret = new ArrayList<Map<String, Object>>(); for (ASN1ObjectIdentifier oid : exts.getCriticalExtensionOIDs()) { ret.add(makeExtensionMap(exts, oid, true)); } for (ASN1ObjectIdentifier oid : exts.getNonCriticalExtensionOIDs()) { ret.add(makeExtensionMap(exts, oid, false)); } return ret; }
for (ASN1ObjectIdentifier oid : bcExtensions.getNonCriticalExtensionOIDs()) { certBuilder.addExtension(oid, false, bcExtensions.getExtension(oid).getParsedValue());
for (ASN1ObjectIdentifier oid : bcExtensions.getNonCriticalExtensionOIDs()) { certGen.addExtension(oid.getId(), false, bcExtensions.getExtension(oid).getExtnValue().getOctets());