Package org.bouncycastle.asn1.nist
Class NISTNamedCurves
java.lang.Object
org.bouncycastle.asn1.nist.NISTNamedCurves
public class NISTNamedCurves extends Object
Utility class for fetching curves using their NIST names as published in FIPS-PUB 186-3
-
Constructor Summary
Constructors Constructor Description NISTNamedCurves() -
Method Summary
Modifier and Type Method Description static X9ECParametersgetByName(String name)static X9ECParametersgetByOID(ASN1ObjectIdentifier oid)return the X9ECParameters object for the named curve represented by the passed in object identifier.static StringgetName(ASN1ObjectIdentifier oid)return the named curve name represented by the given object identifier.static EnumerationgetNames()returns an enumeration containing the name strings for curves contained in this structure.static ASN1ObjectIdentifiergetOID(String name)return the object identifier signified by the passed in name.
-
Constructor Details
-
NISTNamedCurves
public NISTNamedCurves()
-
-
Method Details
-
getByName
-
getByOID
return the X9ECParameters object for the named curve represented by the passed in object identifier. Null if the curve isn't present.- Parameters:
oid- an object identifier representing a named curve, if present.
-
getOID
return the object identifier signified by the passed in name. Null if there is no object identifier associated with name.- Returns:
- the object identifier associated with name, if present.
-
getName
return the named curve name represented by the given object identifier. -
getNames
returns an enumeration containing the name strings for curves contained in this structure.
-