Class Overview
Utility class to allow conversion of EC key parameters to explicit from named
curves and back (where possible).
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
static
PrivateKey
privateToExplicitParameters
(PrivateKey key, String providerName)
Convert a passed in private EC key to have explicit parameters. If the key
is already using explicit parameters it is returned.
Parameters
key
| key to be converted |
providerName
| provider name to be used. |
Returns
- the equivalent key with explicit curve parameters
public
static
PrivateKey
privateToExplicitParameters
(PrivateKey key, Provider provider)
Convert a passed in private EC key to have explicit parameters. If the key
is already using explicit parameters it is returned.
Parameters
key
| key to be converted |
provider
| provider to be used. |
Returns
- the equivalent key with explicit curve parameters
public
static
PublicKey
publicToExplicitParameters
(PublicKey key, Provider provider)
Convert a passed in public EC key to have explicit parameters. If the key
is already using explicit parameters it is returned.
Parameters
key
| key to be converted |
provider
| provider to be used. |
Returns
- the equivalent key with explicit curve parameters
public
static
PublicKey
publicToExplicitParameters
(PublicKey key, String providerName)
Convert a passed in public EC key to have explicit parameters. If the key
is already using explicit parameters it is returned.
Parameters
key
| key to be converted |
providerName
| provider name to be used. |
Returns
- the equivalent key with explicit curve parameters