com.atlassian.confluence.security.trust
Interface AsymmetricKeyFactory

All Known Implementing Classes:
ProviderBasedAsymmetricKeyFactory

public interface AsymmetricKeyFactory

Simple interface for generating public/private key pairs


Method Summary
 KeyPair getNewKeyPair()
          Generate a new pair of asymmetric cryptographic keys
 

Method Detail

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


Copyright © 2003–2015 Atlassian. All rights reserved.