Class NamedCurveRegistry
java.lang.Object
se.swedenconnect.sigval.commons.algorithms.NamedCurveRegistry
Registry over supported named EC curves.
Any EC curve can be specified using the defined curve parameters of EC cryptography.
Some curves with specific parameters have been assigned OID identifiers. These are called "named curves"
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Default named curve for the registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedCurve
get
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) Get supported named curve based on Object Identifierstatic boolean
registerCurve
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, int keyLen) Register new named curve
-
Constructor Details
-
NamedCurveRegistry
public NamedCurveRegistry()
-
-
Method Details
-
registerCurve
public static boolean registerCurve(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, int keyLen) Register new named curve- Parameters:
oid
- Object IdentifierkeyLen
- key length- Returns:
- true if the named cuve was added to the registry
-
get
public static NamedCurve get(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) throws NoSuchAlgorithmException Get supported named curve based on Object Identifier- Parameters:
oid
- Object Identifier- Returns:
- named curve
- Throws:
NoSuchAlgorithmException
- if the requested curve was not in the registry
-