ProxyCertInfo ::= SEQUENCE { pCPathLenConstraint INTEGER (0..MAX) OPTIONAL, proxyPolicy ProxyPolicy } ProxyPolicy ::= SEQUENCE { policyLanguage OBJECT IDENTIFIER, policy OCTET STRING OPTIONAL }
222223224225226227228229230231232
set.addObject(bc); // "ProxyCertInfo" extension. SOTProxyPolicy pp = new SOTProxyPolicy( new DERObjectIdentifier("1.3.6.1.5.5.7.21.1")); SOTProxyCertInfo pci = new SOTProxyCertInfo(pp); set.addObject(pci); } PKCS10CertificationRequest csr = new PKCS10CertificationRequest(
117118119120121122123124
return Integer.toString(Math.abs(subHash)); } private void addProxyCertInfoExtension() { SOTProxyPolicy policy = new SOTProxyPolicy(SOTProxyPolicy.INHERITALL); SOTProxyCertInfo proxyCertInfo = new SOTProxyCertInfo(policy); generator.addExtension("1.3.6.1.5.5.7.1.14", CRITICAL, proxyCertInfo); }