com.nimbusds.jose
Class ECKey.Curve

java.lang.Object
  extended by com.nimbusds.jose.ECKey.Curve
Enclosing class:
ECKey

@Immutable
public static class ECKey.Curve
extends java.lang.Object

Cryptographic curve. This class is immutable.

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).


Field Summary
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 Summary
ECKey.Curve(java.lang.String name)
          Creates a new cryptographic curve with the specified name.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_256

public static final ECKey.Curve P_256
P-256 curve.


P_384

public static final ECKey.Curve P_384
P-384 curve.


P_521

public static final ECKey.Curve P_521
P-521 curve.

Constructor Detail

ECKey.Curve

public ECKey.Curve(java.lang.String name)
Creates a new cryptographic curve with the specified name.

Parameters:
name - The name of the cryptographic curve. Must not be null.
Method Detail

getName

public java.lang.String getName()
Gets the name of this cryptographic curve.

Returns:
The name.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
getName()

equals

public boolean equals(java.lang.Object object)
Overrides Object.equals().

Overrides:
equals in class java.lang.Object
Parameters:
object - The object to compare to.
Returns:
true if the objects have the same value, otherwise false.

parse

public static ECKey.Curve parse(java.lang.String s)
                         throws java.text.ParseException
Parses a cryptographic curve from the specified string.

Parameters:
s - The string to parse. Must not be null.
Returns:
The cryptographic curve.
Throws:
java.text.ParseException - If the string couldn't be parsed.


Copyright © 2013 NimbusDS. All Rights Reserved.