Interface AsymmetricKeyFactory
-
- All Known Implementing Classes:
ProviderBasedAsymmetricKeyFactory
public interface AsymmetricKeyFactory
Simple interface for generating public/private key pairs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPair
getNewKeyPair()
Generate a new pair of asymmetric cryptographic keys
-
-
-
Method Detail
-
getNewKeyPair
KeyPair getNewKeyPair() throws NoSuchProviderException, NoSuchAlgorithmException
Generate a new pair of asymmetric cryptographic keys- Returns:
- a freshly generated key pair
- Throws:
NoSuchProviderException
- if a required cryptographic provider is not availableNoSuchAlgorithmException
- if a required cryptographic algorithm is not available
-
-