public final class ProviderBasedAsymmetricKeyFactory extends Object implements AsymmetricKeyFactory
This implementation delegates key pair generation to the configured EncryptionProvider
EncryptionProvider.generateNewKeyPair()
Constructor and Description |
---|
ProviderBasedAsymmetricKeyFactory() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
getNewKeyPair()
Generate a new pair of asymmetric cryptographic keys
|
void |
setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) |
public KeyPair getNewKeyPair() throws NoSuchProviderException, NoSuchAlgorithmException
AsymmetricKeyFactory
getNewKeyPair
in interface AsymmetricKeyFactory
NoSuchProviderException
- if a required cryptographic provider is not availableNoSuchAlgorithmException
- if a required cryptographic algorithm is not availablepublic void setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
Copyright © 2003–2019 Atlassian. All rights reserved.