namespace Akenti class KeyFactory : public ref_ptr

A KeyFactory object is a reference-count pointer that wraps a KeyFactoryImpl object

Inheritance:


Public Methods

KeyFactory (KeyFactoryImpl *impl = NULL)
Constructs a KeyFactory object given a KeyFactoryImpl object
~KeyFactory ()
Destroys this object
static KeyFactory getInstance ()
Returns an instance of the Provider's KeyFactory/

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
operator void*() const
T* get() const

Documentation

A KeyFactory object is a reference-count pointer that wraps a KeyFactoryImpl object. It provides applications, albeit indirectly, with key generation, PEM or DER encoding and decoding of the key for export or import.
Usage:

try {
KeyFactory fac = KeyFactory::getInstance();
KeyPair pair = fac->generateRSAKeyPair(); 
string enc = fac->getKeyEncoded("DER", pair.getPrivateKey());
PrivateKey key = fac->initPrivateKey("DER", "RSA", enc);

....
} catch(SecurityException e) { ... }
KeyFactory(KeyFactoryImpl *impl = NULL)
Constructs a KeyFactory object given a KeyFactoryImpl object. Typically the getInstance(const string&) is called to create an instance of this class.
Parameters:
impl - the wrapped object that does the work
See Also:
ref_ptr
KeyFactoryImpl
getInstance()

~KeyFactory()
Destroys this object.
See Also:
ref_ptr

static KeyFactory getInstance()
Returns an instance of the Provider's KeyFactory/
Throws:
Error if a provider has not been installed
See Also:
getProvider()
getKeyFactory()


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
ref_ptr
KeyFactoryImpl
Provider
getKeyFactory
PublicKey
PrivateKey
KeyPair

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de