public class ECKeyGenerator extends java.lang.Object implements KeyGenerator
KeyGenerator that creates Elliptic Curve key pairs.| Constructor and Description |
|---|
ECKeyGenerator()
Create a
KeyGenerator that will create EC key pairs using the secp256r1 named curve (NIST P-256)
supported by modern web browsers. |
ECKeyGenerator(java.lang.String namedCurve)
Create a
KeyGenerator that will create EC key pairs using the specified named curve. |
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generate()
Generates a new public/private key pair.
|
java.lang.String |
toString() |
public ECKeyGenerator()
KeyGenerator that will create EC key pairs using the secp256r1 named curve (NIST P-256)
supported by modern web browsers.public ECKeyGenerator(java.lang.String namedCurve)
KeyGenerator that will create EC key pairs using the specified named curve.namedCurve - namedCurvepublic java.security.KeyPair generate()
KeyGeneratorgenerate in interface KeyGeneratorpublic java.lang.String toString()
toString in class java.lang.Object