public static enum ECDH.Curves extends java.lang.Enum<ECDH.Curves>
Modifier and Type | Field and Description |
---|---|
int |
derivedSecretSize
Expected size of the derived secret (in bytes)
|
protected java.security.Provider |
kaProvider |
protected java.security.Provider |
kfProvider |
protected java.security.Provider |
kgProvider |
int |
modulusSize
Expected size of a pubkey
|
java.security.spec.ECGenParameterSpec |
spec |
Modifier and Type | Method and Description |
---|---|
java.security.KeyPair |
generateKeyPair() |
java.lang.String |
toString() |
static ECDH.Curves |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ECDH.Curves[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECDH.Curves P256
public static final ECDH.Curves P384
public static final ECDH.Curves P521
public final java.security.spec.ECGenParameterSpec spec
protected final java.security.Provider kgProvider
protected final java.security.Provider kfProvider
protected final java.security.Provider kaProvider
public final int modulusSize
public final int derivedSecretSize
public static ECDH.Curves[] values()
for (ECDH.Curves c : ECDH.Curves.values()) System.out.println(c);
public static ECDH.Curves valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.security.KeyPair generateKeyPair()
public java.lang.String toString()
toString
in class java.lang.Enum<ECDH.Curves>