com.atlassian.confluence.security.trust
Class ProviderBasedAsymmetricKeyFactory

java.lang.Object
  extended by 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
ProviderBasedAsymmetricKeyFactory()
           
 
Method Summary
 KeyPair getNewKeyPair()
          Generate a new pair of asymmetric cryptographic keys
 void setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderBasedAsymmetricKeyFactory

public ProviderBasedAsymmetricKeyFactory()
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 interface AsymmetricKeyFactory
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

setEncryptionProvider

public void setEncryptionProvider(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)


Copyright © 2003–2015 Atlassian. All rights reserved.