Class NamedCurve
- java.lang.Object
-
- se.swedenconnect.security.algorithms.curves.NamedCurve
-
public class NamedCurve extends Object
Representation of a named curve.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
-
Constructor Summary
Constructors Constructor Description NamedCurve(String name, String objectIdentifier, int keyLength)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetKeyLength()Gets the length, in bits, of a key using this curve.StringgetName()Gets the name of the curve.StringgetObjectIdentifier()Gets the string representation for the ASN.1 object identifier of the curve.StringgetUri()Gets the URI for this curve.inthashCode()StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the curve.- Returns:
- the name
-
getObjectIdentifier
public String getObjectIdentifier()
Gets the string representation for the ASN.1 object identifier of the curve.- Returns:
- the object identifier
-
getUri
public String 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
-
-