Package jp.go.aist.sot.utils

Examples of jp.go.aist.sot.utils.SOTProxyPolicy


                // "Basic Constraints" extension.
                BasicConstraints bc = new BasicConstraints(false);

                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);
            }
View Full Code Here


        throw new IllegalArgumentException("unknown object in factory");
    }

    public SOTProxyCertInfo(ASN1Sequence seq) {
        if (seq.size() == 1) {
            this.proxyPolicy = new SOTProxyPolicy(
                    (ASN1Sequence) seq.getObjectAt(0));
        } else if (seq.size() > 1) {
            this.pCPathLenConstraint = (DERInteger) seq.getObjectAt(0);
            this.proxyPolicy = new SOTProxyPolicy(
                    (ASN1Sequence) seq.getObjectAt(1));
        }
    }
View Full Code Here

        subHash = digest[0] + (digest[1] + (digest[2] + (digest[3] >>> 1) * 256) * 256) * 256;
        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);
    }
View Full Code Here

TOP

Related Classes of jp.go.aist.sot.utils.SOTProxyPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.