@Immutable public static class ECKey.Curve extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ECKey.Curve |
P_256
P-256 curve.
|
static ECKey.Curve |
P_384
P-384 curve.
|
static ECKey.Curve |
P_521
P-521 curve.
|
Constructor and Description |
---|
ECKey.Curve(java.lang.String name)
Creates a new cryptographic curve with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals() . |
java.lang.String |
getName()
Gets the name of this cryptographic curve.
|
static ECKey.Curve |
parse(java.lang.String s)
Parses a cryptographic curve from the specified string.
|
java.lang.String |
toString() |
public static final ECKey.Curve P_256
public static final ECKey.Curve P_384
public static final ECKey.Curve P_521
public ECKey.Curve(java.lang.String name)
name
- The name of the cryptographic curve. Must not be
null
.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
getName()
public boolean equals(java.lang.Object object)
Object.equals()
.equals
in class java.lang.Object
object
- The object to compare to.true
if the objects have the same value,
otherwise false
.public static ECKey.Curve parse(java.lang.String s) throws java.text.ParseException
s
- The string to parse. Must not be null
.java.text.ParseException
- If the string couldn't be parsed.Copyright © 2013 NimbusDS. All Rights Reserved.