class Akenti::KeyPair

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

Public Methods

[more] KeyPair ()
Default Constructor.
[more] KeyPair (const PublicKey &pubKey, const PrivateKey &privKey)
Constructs a key pair given a public key and a private key.
[more] ~KeyPair ()
Destroys this object.
[more]const PrivateKey& getPrivateKey () const
Returns a reference to the private key component of this key pair.
[more]const Key& getPublicKey () const
Returns a reference to the public key component of this key pair.
[more]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.

o KeyPair()
Default Constructor.

o 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

o ~KeyPair()
Destroys this object.

See Also:
ref_ptr
PublicKey
PrivateKey

oconst 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

oconst Key& 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

ostring 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.