#include <KeyFactory.h>
Public Member Functions | |
virtual | ~KeyFactory () |
PrivateKey * | generatePrivate (const KeySpec &spec) throw (InvalidKeySpecException) |
PublicKey * | generatePublic (const KeySpec &spec) throw (InvalidKeySpecException) |
KeySpec * | getKeySpec (const Key &key, const type_info &info) throw (InvalidKeySpecException) |
Key * | translateKey (const Key &key) throw (InvalidKeyException) |
const String & | getAlgorithm () const throw () |
const Provider & | getProvider () const throw () |
Static Public Member Functions | |
static KeyFactory * | getInstance (const String &algorithm) throw (NoSuchAlgorithmException) |
static KeyFactory * | getInstance (const String &algorithm, const String &provider) throw (NoSuchAlgorithmException, NoSuchProviderException) |
static KeyFactory * | getInstance (const String &algorithm, const Provider &provider) throw (NoSuchAlgorithmException) |
Protected Member Functions | |
KeyFactory (KeyFactorySpi *spi, const Provider *provider, const String &algorithm) |
beecrypt::security::KeyFactory::KeyFactory | ( | KeyFactorySpi * | spi, | |
const Provider * | provider, | |||
const String & | algorithm | |||
) | [protected] |
virtual beecrypt::security::KeyFactory::~KeyFactory | ( | ) | [virtual] |
PrivateKey* beecrypt::security::KeyFactory::generatePrivate | ( | const KeySpec & | spec | ) | throw (InvalidKeySpecException) |
PublicKey* beecrypt::security::KeyFactory::generatePublic | ( | const KeySpec & | spec | ) | throw (InvalidKeySpecException) |
const String& beecrypt::security::KeyFactory::getAlgorithm | ( | ) | const throw () |
static KeyFactory* beecrypt::security::KeyFactory::getInstance | ( | const String & | algorithm, | |
const Provider & | provider | |||
) | throw (NoSuchAlgorithmException) [static] |
static KeyFactory* beecrypt::security::KeyFactory::getInstance | ( | const String & | algorithm, | |
const String & | provider | |||
) | throw (NoSuchAlgorithmException, NoSuchProviderException) [static] |
static KeyFactory* beecrypt::security::KeyFactory::getInstance | ( | const String & | algorithm | ) | throw (NoSuchAlgorithmException) [static] |
KeySpec* beecrypt::security::KeyFactory::getKeySpec | ( | const Key & | key, | |
const type_info & | info | |||
) | throw (InvalidKeySpecException) |
const Provider& beecrypt::security::KeyFactory::getProvider | ( | ) | const throw () |
Key* beecrypt::security::KeyFactory::translateKey | ( | const Key & | key | ) | throw (InvalidKeyException) |