@Immutable public static class ECKey.Curve extends Object implements Serializable
Includes constants for the following standard cryptographic curves:
See "Digital Signature Standard (DSS)", FIPS PUB 186-3, June 2009, National Institute of Standards and Technology (NIST).
Modifier and Type | Field and Description |
---|---|
static ECKey.Curve |
P_256
P-256 curve (secp256r1, also called prime256v1).
|
static ECKey.Curve |
P_384
P-384 curve (secp384r1).
|
static ECKey.Curve |
P_521
P-521 curve (secp521r1).
|
Constructor and Description |
---|
Curve(String name)
Creates a new cryptographic curve with the specified JOSE
name.
|
Curve(String name,
String stdName)
Creates a new cryptographic curve with the specified JOSE
and standard names.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static ECKey.Curve |
forECParameterSpec(ECParameterSpec spec)
Gets the cryptographic curve for the specified parameter
specification.
|
static ECKey.Curve |
forStdName(String stdName)
Gets the cryptographic curve for the specified standard
name.
|
String |
getName()
Returns the JOSE name of this cryptographic curve.
|
String |
getStdName()
Returns the standard name of this cryptographic curve.
|
static ECKey.Curve |
parse(String s)
Parses a cryptographic curve from the specified string.
|
ECParameterSpec |
toECParameterSpec()
Returns the parameter specification for this cryptographic
curve.
|
String |
toString() |
public static final ECKey.Curve P_256
public static final ECKey.Curve P_384
public static final ECKey.Curve P_521
public Curve(String name)
name
- The JOSE name of the cryptographic curve. Must not be
null
.public String getName()
public String getStdName()
null
if not specified.public ECParameterSpec toECParameterSpec()
null
if it
cannot be determined.public static ECKey.Curve parse(String s)
s
- The string to parse. Must not be null
or
empty.public static ECKey.Curve forStdName(String stdName)
stdName
- The standard curve name. May be null
.null
if it cannot be determined.public static ECKey.Curve forECParameterSpec(ECParameterSpec spec)
spec
- The EC parameter spec. May be null
.null
if it cannot be determined.Copyright © 2016 Connect2id Ltd.. All rights reserved.