class OpenSSLKeyFactoryImpl |
This class is a subclass of KeyFactoryImpl which has methods for key generation, encoding, and decoding.
![]() | OpenSSLKeyFactoryImpl () Construct this object |
![]() | ~OpenSSLKeyFactoryImpl () Delete this object |
![]() | getKeyEncoded (const string& format, const PublicKey& key) const Encodes the key using a format specified by format. |
![]() | getKeyEncoded (const string& format, const PrivateKey& key) const Encodes the key using a format specified by format. |
![]() | initPublicKey (const string& format, const string& encoding) const returns a PublicKey. |
![]() | initPrivateKey (const string& format, const string& encoding) const returns a PrivateKey. |
![]() | initPrivateKeyFromFile (const string& format, const string& fileName) const |
![]() | generateRSAKeyPair (int size, unsigned long exponent) const Generates an RSA key pair. |
![]() | generateDSAKeyPair (int size) const Generates a DSA key pair. |
This class is a subclass of KeyFactoryImpl which has methods for key generation, encoding, and decoding.a pair of RSA or DSA keyPairs will be generated by calling generateRSAKeyPair()or generateDSAKeyPair().
a privateKey or publicKey can be encoded by calling getKeyEncoded() with the format specified as "DER".
a privateKey or publicKey class can be initialized from a DER string by calling initPrivateKey() or initPublicKey(). Both RSA and DSA keys are currently handled.
Alphabetic index HTML hierarchy of classes or Java