00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef _CLASS_KEYPAIR_H
00024 #define _CLASS_KEYPAIR_H
00025
00026 #ifdef __cplusplus
00027
00028 #include "beecrypt/c++/lang/Object.h"
00029 using beecrypt::lang::Object;
00030 #include "beecrypt/c++/security/PrivateKey.h"
00031 using beecrypt::security::PrivateKey;
00032 #include "beecrypt/c++/security/PublicKey.h"
00033 using beecrypt::security::PublicKey;
00034
00035 namespace beecrypt {
00036 namespace security {
00039 class BEECRYPTCXXAPI KeyPair : public beecrypt::lang::Object
00040 {
00041 friend class KeyPairGenerator;
00042
00043 private:
00044 PublicKey* _pub;
00045 PrivateKey* _pri;
00046
00047 public:
00048 KeyPair(PublicKey*, PrivateKey*);
00049 virtual ~KeyPair();
00050
00051 const PublicKey& getPublic() const throw ();
00052 const PrivateKey& getPrivate() const throw ();
00053 };
00054 }
00055 }
00056
00057 #endif
00058
00059 #endif