Examples of ASN1ObjectIdentifier


Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

    public void addExtension(
        DERObjectIdentifier oid,
        boolean             critical,
        ASN1Encodable       value)
    {
        addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value);
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

    public void addExtension(
        DERObjectIdentifier oid,
        boolean             critical,
        byte[]              value)
    {
        addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value);
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

    {
        X962Parameters params = new X962Parameters((ASN1Primitive)info.getPrivateKeyAlgorithm().getParameters());

        if (params.isNamedCurve())
        {
            ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
            X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);

            if (ecP == null) // GOST Curve
            {
                ECDomainParameters gParam = ECGOST3410NamedCurves.getByOID(oid);
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

        ASN1EncodableVector vec = new ASN1EncodableVector();
        Enumeration e = ordering.elements();

        while (e.hasMoreElements())
        {
            ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement();
            Extension ext = (Extension)extensions.get(oid);

            vec.add(ext);
        }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

        this.holder = holder;
    }
   
    public void addAttribute(String oid, ASN1Encodable value)
    {
        attributes.add(new Attribute(new ASN1ObjectIdentifier(oid), new DERSet(value)));
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

            ECCurve                 curve;
            EllipticCurve           ellipticCurve;

            if (params.isNamedCurve())
            {
                ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
                X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);

                curve = ecP.getCurve();
                ellipticCurve = EC5Util.convertCurve(curve, ecP.getSeed());
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

        }
        else
        {
            if (ecSpec instanceof ECNamedCurveSpec)
            {
                ASN1ObjectIdentifier curveOid = ECUtil.getNamedCurveOid(((ECNamedCurveSpec)ecSpec).getName());
                if (curveOid == null)
                {
                    curveOid = new ASN1ObjectIdentifier(((ECNamedCurveSpec)ecSpec).getName());
                }
                params = new X962Parameters(curveOid);
            }
            else if (ecSpec == null)
            {
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

        {
            this.obj = new DERIA5String(name);
        }
        else if (tag == registeredID)
        {
            this.obj = new ASN1ObjectIdentifier(name);
        }
        else if (tag == directoryName)
        {
            this.obj = new X500Name(name);
        }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

     * @deprecated use getInstance and an OID or one of the constants above.
     * @param id string representation of an OID.
     */
    public KeyPurposeId(String id)
    {
        this(new ASN1ObjectIdentifier(id));
    }
View Full Code Here

Examples of org.bouncycastle.asn1.ASN1ObjectIdentifier

     * @param objectId
     */
    public AlgorithmIdentifier(
        String     objectId)
    {
        this.objectId = new ASN1ObjectIdentifier(objectId);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.