org.apache.commons.ssl.util
Class PublicKeyDeriver
java.lang.Object
org.apache.commons.ssl.util.PublicKeyDeriver
public class PublicKeyDeriver
- extends Object
Utility class for deriving a public key from a given private key.
- Since:
- November 14th, 2007
- Author:
- Chad La Joie
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicKeyDeriver
public PublicKeyDeriver()
derivePublicKey
public static PublicKey derivePublicKey(PrivateKey key)
throws GeneralSecurityException
- Utility method for deriving a public key from a given private key.
- Parameters:
key
- private key for which we need a public key (DSA or RSA).
- Returns:
- the corresponding public key
- Throws:
GeneralSecurityException
- if it didn't work