public class ECKeyUtil
extends java.lang.Object
| Constructor and Description |
|---|
ECKeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.PrivateKey |
privateToExplicitParameters(java.security.PrivateKey key,
java.security.Provider provider)
Convert a passed in private EC key to have explicit parameters.
|
static java.security.PrivateKey |
privateToExplicitParameters(java.security.PrivateKey key,
java.lang.String providerName)
Convert a passed in private EC key to have explicit parameters.
|
static java.security.PublicKey |
publicToExplicitParameters(java.security.PublicKey key,
java.security.Provider provider)
Convert a passed in public EC key to have explicit parameters.
|
static java.security.PublicKey |
publicToExplicitParameters(java.security.PublicKey key,
java.lang.String providerName)
Convert a passed in public EC key to have explicit parameters.
|
public static java.security.PublicKey publicToExplicitParameters(java.security.PublicKey key,
java.lang.String providerName)
throws java.lang.IllegalArgumentException,
java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
key - key to be convertedproviderName - provider name to be used.java.lang.IllegalArgumentExceptionjava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionpublic static java.security.PublicKey publicToExplicitParameters(java.security.PublicKey key,
java.security.Provider provider)
throws java.lang.IllegalArgumentException,
java.security.NoSuchAlgorithmException
key - key to be convertedprovider - provider to be used.java.lang.IllegalArgumentExceptionjava.security.NoSuchAlgorithmExceptionpublic static java.security.PrivateKey privateToExplicitParameters(java.security.PrivateKey key,
java.lang.String providerName)
throws java.lang.IllegalArgumentException,
java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
key - key to be convertedproviderName - provider name to be used.java.lang.IllegalArgumentExceptionjava.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionpublic static java.security.PrivateKey privateToExplicitParameters(java.security.PrivateKey key,
java.security.Provider provider)
throws java.lang.IllegalArgumentException,
java.security.NoSuchAlgorithmException
key - key to be convertedprovider - provider to be used.java.lang.IllegalArgumentExceptionjava.security.NoSuchAlgorithmException