com.atlassian.confluence.security.trust
Interface AsymmetricKeyFactory
- All Known Implementing Classes:
- ProviderBasedAsymmetricKeyFactory
public interface AsymmetricKeyFactory
Simple interface for generating public/private key pairs
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 available
NoSuchAlgorithmException
- if a required cryptographic algorithm is not available