namespace Akenti class KeyPair This class is a simple holder for a key pair, a public key and a private key
| | ~KeyFactoryImpl () Deletes this object |
| | getKeyEncoded (const string& format, const PublicKey &key) const Encodes the public key using a format specified by format |
| | initPublicKey (const string& format, const string& type, const string& encoding) const Returns a PublicKey |
| | getKeyEncoded (const string& format, const PrivateKey &key) const Encodes the private key using a format specified by format (only DER for now) |
| | initPrivateKey (const string& format, const string& encoding) const Returns a PrivateKey |
| | initPrivateKeyFromFile (const string& format, const string& fileName) const Initiliazes the PrivateKey from a file |
| | generateRSAKeyPair (int size = 64, unsigned long exponent = 3) const Generates an RSA key pair |
| | generateDSAKeyPair (int size = 64, const string& seed = "") const Generates a DSA key pair |
| | KeyPair () Default Constructor |
| | KeyPair (const PublicKey &publicKey, const PrivateKey &privateKey) Constructs a key pair given a public key and a private key |
| | ~KeyPair () Destroys this object |
| | getPrivateKey () const Returns a reference to the private key component of this key pair |
| | getPublicKey () const Returns a reference to the public key component of this key pair |
| | paramString () const Returns a string representation of this key pair for debugging purposes |
| | KeyFactoryImpl () Constructs this object |
This class is a simple holder for a key pair, a public key and a private key. It does not enforce any security and, when initialized, should be treated like a private key.
virtual string getKeyEncoded(const string& format, const PublicKey &key) const
SecurityException if format is unsupported or if the
encoding fails
key - PublicKey to be encoded
PublicKeyImpl
virtual PublicKey initPublicKey(const string& format, const string& type, const string& encoding) const
type - the key's type
encoding - a string of bytes
PrivateKeyImpl
virtual string getKeyEncoded(const string& format, const PrivateKey &key) const
SecurityException if format is unsupported or if the
encoding fails
key - PrivateKey to be encoded
PrivateKeyImpl
virtual PrivateKey initPrivateKey(const string& format, const string& encoding) const
type - the key's type
encoding - a string of bytes
PrivateKeyImpl
virtual PrivateKey initPrivateKeyFromFile(const string& format, const string& fileName) const
fileName - name of the file that contains the private key
virtual KeyPair generateRSAKeyPair(int size = 64, unsigned long exponent = 3) const
size - int exponent a prime number
PrivateKey
PrivateKeyImpl
PublicKey
PublicImpl
virtual KeyPair generateDSAKeyPair(int size = 64, const string& seed = "") const
size - string used to seed the genrator
PrivateKey
PrivateKeyImpl
PublicKey
PublicImpl
KeyFactoryImpl()
KeyPair()
KeyPair(const PublicKey &publicKey, const PrivateKey &privateKey)
privateKey - the private key.
PrivateKey
~KeyPair()
PublicKey
PrivateKey
const PrivateKey& getPrivateKey() const
const PublicKey& getPublicKey() const
string paramString() const
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