This abstract class provides applications with key generation, PEM or DER encoding and decoding for key export and import
![]() | ~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& encoding) const Returns a PublicKey |
![]() | getKeyEncoded (const string& format, const PrivateKey &key) const Encodes the private key using a format specified by format |
![]() | 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 Generates a DSA key pair |
![]() | KeyFactoryImpl () Constructs this object |
This abstract class provides applications with key generation, PEM or DER encoding and decoding for key export and import. Typically, an instance of this class is instantiated and wrapped in a KeyFactory object which is merely a reference-count pointer. Applications should never have to instantiate a subclass of this class. Instead, the KeyFactory#getKeyFactory() should be used.
virtual string getKeyEncoded(const string& format, const PublicKey &key) const
Error if key is unitialized or unrecognized
key - PublicKey to be encoded
virtual PublicKey initPublicKey(const string& format, const string& encoding) const
encoding - a string of bytes
virtual string getKeyEncoded(const string& format, const PrivateKey &key) const
Error if key is unitialized or unrecognized
format - the format used for encoding
virtual PrivateKey initPrivateKey(const string& format, const string& encoding) const
type - the key's type
encoding - a string of bytes
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
PublicKey virtual KeyPair generateDSAKeyPair(int size = 64) const
PrivateKey
PublicKey
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