Top Description Fields Constructors Methods
org.bouncycastle.asn1.nist

public Class NISTNamedCurves

extends Object
Class Inheritance
Imports
java.util.Enumeration, .Hashtable, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.sec.SECNamedCurves, .SECObjectIdentifiers, org.bouncycastle.asn1.x9.X9ECParameters, org.bouncycastle.util.Strings

Utility class for fetching curves using their NIST names as published in FIPS-PUB 186-3

Field Summary

Modifier and TypeField and Description
pack-priv static final Hashtable<K, V>
pack-priv static final Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
public static X9ECParameters
public static X9ECParameters
getByOID(ASN1ObjectIdentifier
an object identifier representing a named curve, if present.
oid
)

return the X9ECParameters object for the named curve represented by the passed in object identifier.

public static String
getName(ASN1ObjectIdentifier oid)

return the named curve name represented by the given object identifier.

public static Enumeration<E>
getNames()

returns an enumeration containing the name strings for curves contained in this structure.

public static ASN1ObjectIdentifier

Returns:

the object identifier associated with name, if present.
getOID
(String name)

return the object identifier signified by the passed in name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

namesback to summary
pack-priv static final Hashtable<K, V> names
objIdsback to summary
pack-priv static final Hashtable<K, V> objIds

Constructor Detail

NISTNamedCurvesback to summary
public NISTNamedCurves()

Method Detail

defineCurveback to summary
pack-priv static void defineCurve(String name, ASN1ObjectIdentifier oid)
getByNameback to summary
public static X9ECParameters getByName(String name)
getByOIDback to summary
public static X9ECParameters getByOID(ASN1ObjectIdentifier oid)

return the X9ECParameters object for the named curve represented by the passed in object identifier. Null if the curve isn't present.

Parameters
oid:ASN1ObjectIdentifier

an object identifier representing a named curve, if present.

getNameback to summary
public static String getName(ASN1ObjectIdentifier oid)

return the named curve name represented by the given object identifier.

getNamesback to summary
public static Enumeration<E> getNames()

returns an enumeration containing the name strings for curves contained in this structure.

getOIDback to summary
public static ASN1ObjectIdentifier getOID(String name)

return the object identifier signified by the passed in name. Null if there is no object identifier associated with name.

Returns:ASN1ObjectIdentifier

the object identifier associated with name, if present.