namespace Akenti class KeyPair

This class is a simple holder for a key pair, a public key and a private key

Public Methods

KeyPair ()
Default Constructor
KeyPair (const PublicKey &pubKey, const PrivateKey &privKey)
Constructs a key pair given a public key and a private key
~KeyPair ()
Destroys this object
const PrivateKey& getPrivateKey () const
Returns a reference to the private key component of this key pair
const PublicKey& getPublicKey () const
Returns a reference to the public key component of this key pair
string paramString () const
Returns a string representation of this key pair for debugging purposes

Documentation

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.
KeyPair()
Default Constructor

KeyPair(const PublicKey &pubKey, const PrivateKey &privKey)
Constructs a key pair given a public key and a private key.
Throws:
Error if eithey key is uninitialized
Parameters:
pubKey - the public key.
privKey - the private key.
See Also:
PublicKey
PrivateKey

~KeyPair()
Destroys this object.
See Also:
ref_ptr
PublicKey
PrivateKey

const PrivateKey& getPrivateKey() const
Returns a reference to the private key component of this key pair.
Throws:
Error if key pair is uninitialzed
Returns:
a reference to the private key
See Also:
PrivateKey

const PublicKey& getPublicKey() const
Returns a reference to the public key component of this key pair.
Throws:
Error if key pair is uninitialzed
Returns:
a reference to the public key
See Also:
PublicKey

string paramString() const
Returns a string representation of this key pair for debugging purposes.
Throws:
Error if one of the keys is uninitialized
Returns:
debugging info


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
PublicKey
PrivateKey
KeyFactory
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, unsigned long)

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