public static enum ECDSA.Curves extends java.lang.Enum<ECDSA.Curves>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
defaultHashAlgorithm
The hash algorithm used to generate the signature
|
protected java.security.Provider |
kfProvider |
protected java.security.Provider |
kgProvider |
int |
maxSigSize
Maximum (padded) size of a DER-encoded signature (network-format)
|
int |
modulusSize
Expected size of a DER encoded pubkey in bytes
|
protected java.security.Provider |
sigProvider |
java.security.spec.ECGenParameterSpec |
spec |
Modifier and Type | Method and Description |
---|---|
java.security.KeyPair |
generateKeyPair() |
SimpleFieldSet |
getSFS(java.security.interfaces.ECPublicKey pub) |
java.lang.String |
toString() |
static ECDSA.Curves |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ECDSA.Curves[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECDSA.Curves P256
public static final ECDSA.Curves P384
public static final ECDSA.Curves P521
public final java.security.spec.ECGenParameterSpec spec
public final java.lang.String defaultHashAlgorithm
public final int modulusSize
public final int maxSigSize
protected final java.security.Provider kgProvider
protected final java.security.Provider kfProvider
protected final java.security.Provider sigProvider
public static ECDSA.Curves[] values()
for (ECDSA.Curves c : ECDSA.Curves.values()) System.out.println(c);
public static ECDSA.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 SimpleFieldSet getSFS(java.security.interfaces.ECPublicKey pub)
public java.lang.String toString()
toString
in class java.lang.Enum<ECDSA.Curves>