public class PublicKeyDeriver extends java.lang.Object
| Constructor and Description |
|---|
PublicKeyDeriver() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.PublicKey |
derivePublicKey(java.security.PrivateKey key)
Utility method for deriving a public key from a given private key.
|
public PublicKeyDeriver()
public static java.security.PublicKey derivePublicKey(java.security.PrivateKey key) throws java.security.GeneralSecurityException
key - private key for which we need a public key (DSA or RSA).java.security.GeneralSecurityException - if it didn't work