Class ProviderBasedAsymmetricKeyFactory
java.lang.Object
com.atlassian.confluence.security.trust.ProviderBasedAsymmetricKeyFactory
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionGenerate a new pair of asymmetric cryptographic keysvoid
setEncryptionProvider
(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
-
Constructor Details
-
ProviderBasedAsymmetricKeyFactory
public ProviderBasedAsymmetricKeyFactory()
-
-
Method Details
-
getNewKeyPair
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)
-