com.google.bitcoin.bouncycastle.asn1.DERObjectIdentifier

Here are the examples of the java api class com.google.bitcoin.bouncycastle.asn1.DERObjectIdentifier taken from open source projects.

1. ECGOST3410NamedCurves#getByName()

View license
public static ECDomainParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(name);
    if (oid != null) {
        return (ECDomainParameters) params.get(oid);
    }
    return null;
}

2. GOST3410NamedParameters#getByName()

View license
public static GOST3410ParamSetParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(name);
    if (oid != null) {
        return (GOST3410ParamSetParameters) params.get(oid);
    }
    return null;
}

3. ProfessionInfo#getProfessionOIDs()

Project: bitcoin-android
Source File: ProfessionInfo.java
View license
/**
     * @return Returns the professionOIDs.
     */
public DERObjectIdentifier[] getProfessionOIDs() {
    if (professionOIDs == null) {
        return new DERObjectIdentifier[0];
    }
    DERObjectIdentifier[] oids = new DERObjectIdentifier[professionOIDs.size()];
    int count = 0;
    for (Enumeration e = professionOIDs.getObjects(); e.hasMoreElements(); ) {
        oids[count++] = DERObjectIdentifier.getInstance(e.nextElement());
    }
    return oids;
}

4. NISTNamedCurves#getByName()

View license
public static X9ECParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(Strings.toUpperCase(name));
    if (oid != null) {
        return getByOID(oid);
    }
    return null;
}

5. SECNamedCurves#getByName()

Project: bitcoin-android
Source File: SECNamedCurves.java
View license
public static X9ECParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(Strings.toLowerCase(name));
    if (oid != null) {
        return getByOID(oid);
    }
    return null;
}

6. TeleTrusTNamedCurves#getByName()

View license
public static X9ECParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(Strings.toLowerCase(name));
    if (oid != null) {
        return getByOID(oid);
    }
    return null;
}

7. X509Name#decodeOID()

Project: bitcoin-android
Source File: X509Name.java
View license
private DERObjectIdentifier decodeOID(String name, Hashtable lookUp) {
    if (Strings.toUpperCase(name).startsWith("OID.")) {
        return new DERObjectIdentifier(name.substring(4));
    } else if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {
        return new DERObjectIdentifier(name);
    }
    DERObjectIdentifier oid = (DERObjectIdentifier) lookUp.get(Strings.toLowerCase(name));
    if (oid == null) {
        throw new IllegalArgumentException("Unknown object id - " + name + " - passed to distinguished name");
    }
    return oid;
}

8. X962NamedCurves#getByName()

View license
public static X9ECParameters getByName(String name) {
    DERObjectIdentifier oid = (DERObjectIdentifier) objIds.get(Strings.toLowerCase(name));
    if (oid != null) {
        return getByOID(oid);
    }
    return null;
}