Class NamedCurve
java.lang.Object
se.swedenconnect.security.algorithms.curves.NamedCurve
Representation of a named curve.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionNamedCurve
(String name, String objectIdentifier, int keyLength) Constructor. -
Method Summary
-
Constructor Details
-
NamedCurve
Constructor.- Parameters:
name
- the name of the curveobjectIdentifier
- the ASN.1 object identifier (in string format)keyLength
- the length, in bits, of a key using this curve
-
-
Method Details
-
getName
Gets the name of the curve.- Returns:
- the name
-
getObjectIdentifier
Gets the string representation for the ASN.1 object identifier of the curve.- Returns:
- the object identifier
-
getUri
Gets the URI for this curve. This is always "urn:oid:" followed by the object identifier.- Returns:
- the URI for the curve
-
getKeyLength
public int getKeyLength()Gets the length, in bits, of a key using this curve.- Returns:
- key length in bits
-
hashCode
public int hashCode() -
equals
-
toString
-