public class ECKeyUtil extends Object
Constructor and Description |
---|
ECKeyUtil() |
Modifier and Type | Method and Description |
---|---|
static PrivateKey |
privateToExplicitParameters(PrivateKey key,
Provider provider)
Convert a passed in private EC key to have explicit parameters.
|
static PrivateKey |
privateToExplicitParameters(PrivateKey key,
String providerName)
Convert a passed in private EC key to have explicit parameters.
|
static PublicKey |
publicToExplicitParameters(PublicKey key,
Provider provider)
Convert a passed in public EC key to have explicit parameters.
|
static PublicKey |
publicToExplicitParameters(PublicKey key,
String providerName)
Convert a passed in public EC key to have explicit parameters.
|
public static PublicKey publicToExplicitParameters(PublicKey key, String providerName) throws IllegalArgumentException, NoSuchAlgorithmException, NoSuchProviderException
key
- key to be convertedproviderName
- provider name to be used.IllegalArgumentException
NoSuchAlgorithmException
NoSuchProviderException
public static PublicKey publicToExplicitParameters(PublicKey key, Provider provider) throws IllegalArgumentException, NoSuchAlgorithmException
key
- key to be convertedprovider
- provider to be used.IllegalArgumentException
NoSuchAlgorithmException
public static PrivateKey privateToExplicitParameters(PrivateKey key, String providerName) throws IllegalArgumentException, NoSuchAlgorithmException, NoSuchProviderException
key
- key to be convertedproviderName
- provider name to be used.IllegalArgumentException
NoSuchAlgorithmException
NoSuchProviderException
public static PrivateKey privateToExplicitParameters(PrivateKey key, Provider provider) throws IllegalArgumentException, NoSuchAlgorithmException
key
- key to be convertedprovider
- provider to be used.IllegalArgumentException
NoSuchAlgorithmException
Copyright © 2015. All rights reserved.