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