Class ProviderBasedAsymmetricKeyFactory
- java.lang.Object
-
- com.atlassian.confluence.security.trust.ProviderBasedAsymmetricKeyFactory
-
- All Implemented Interfaces:
AsymmetricKeyFactory
public final class ProviderBasedAsymmetricKeyFactory extends Object implements AsymmetricKeyFactory
Key factory for generating asymmetric cryptographic keys.This implementation delegates key pair generation to the configured
EncryptionProvider
- See Also:
EncryptionProvider.generateNewKeyPair()
-
-
Constructor Summary
Constructors Constructor Description ProviderBasedAsymmetricKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPair
getNewKeyPair()
Generate a new pair of asymmetric cryptographic keysvoid
setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
-
-
-
Method Detail
-
getNewKeyPair
public KeyPair getNewKeyPair() throws NoSuchProviderException, NoSuchAlgorithmException
Description copied from interface:AsymmetricKeyFactory
Generate a new pair of asymmetric cryptographic keys- Specified by:
getNewKeyPair
in interfaceAsymmetricKeyFactory
- Returns:
- a freshly generated key pair
- Throws:
NoSuchProviderException
- if a required cryptographic provider is not availableNoSuchAlgorithmException
- if a required cryptographic algorithm is not available
-
setEncryptionProvider
public void setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
-
-