namespace Akenti class OpenSSLPublicKeyImpl : private OpenSSLKeyImpl, public PublicKeyImpl

This class is instantiated from two superclasses OpenSSLKeyImpl and PublicKeyImpl and wraps the publicKey methods of OpenSSLKeyImpl

Inheritance:


Public Methods

OpenSSLProviderImpl ()
~OpenSSLProviderImpl ()
MessageDigest getMessageDigest (const string& alg) const
Returns a MessageDigest object given the name of a standard algorithm specified by alg such as MD5 or SHA1
Signature getSignature (const string& alg) const
Returns a Signature object given the name of a standard algorithm specified by alg such as MD5 or SHA1
KeyFactory getKeyFactory () const
Returns a KeyFactory object
CertificateFactory getCertificateFactory () const
Returns a CertificateFactory object
string getAlgorithm () const
Returns the standard algorithm name for this key
string getFormat () const
Returns the standard format name such as "DER" to indicate using which format to encode the key
int getSize () const
Returns the size of the key
string encrypt (const string& data) const
Encrypt the data using standard algorithm "RSA"
string decrypt (const string& encrypted) const
Decrypts the encrypted string
string paramString () const
Returns a string representation of this key for debugging purposes
EVP_PKEY* getEVP_PKEY ()
This should discourage clients not to mess around with implementation details
OpenSSLPublicKeyImpl (EVP_PKEY* evp)
The constructor is used by OpenSSLKeyFactoryImpl

Inherited from OpenSSLKeyImpl:

Public Methods

OpenSSLKeyFactoryImpl()
~OpenSSLKeyFactoryImpl()
string getKeyEncoded(const string& format, const PublicKey& key) const
string getKeyEncoded(const string& format, const PrivateKey& key) const
PublicKey initPublicKey(const string& format, const string& type, const string& encoding) const
PrivateKey initPrivateKey(const string& format, const string& encoding) const
KeyPair generateRSAKeyPair(int size, unsigned long exponent) const
KeyPair generateDSAKeyPair(int size, const string& seed) const
string privateDecrypt(const string &encrypted) const
string privateEncrypt(const string &data) const
string publicDecrypt(const string &encrypted) const
string publicEncrypt(const string &data) const
int size() const
string format() const
string algorithm() const

Inherited from PublicKeyImpl:


Documentation

This class is instantiated from two superclasses OpenSSLKeyImpl and PublicKeyImpl and wraps the publicKey methods of OpenSSLKeyImpl. It inherits a EVP_PKEY structure from OpenSSLKeyImpl.
OpenSSLProviderImpl()

~OpenSSLProviderImpl()

MessageDigest getMessageDigest(const string& alg) const
Returns a MessageDigest object given the name of a standard algorithm specified by alg such as MD5 or SHA1.
Throws:
SecurityException if algorithm is not supported
Returns:
a MessageDigest object
Parameters:
alg - string standard name of an algorithm
See Also:
getInstance(const string& alg)
MessageDigestImpl

Signature getSignature(const string& alg) const
Returns a Signature object given the name of a standard algorithm specified by alg such as MD5 or SHA1.
Throws:
SecurityException if algorithm is not supported
Returns:
a Signature object
Parameters:
alg - string standard name of a Signature algorithm
See Also:
getInstance(const string& alg)
SignatureImpl

KeyFactory getKeyFactory() const
Returns a KeyFactory object.
Returns:
a KeyFactory object
See Also:
getInstance()
KeyFactoryImpl

CertificateFactory getCertificateFactory() const
Returns a CertificateFactory object.
Returns:
a CertificateFactory object
See Also:
getInstance()
CertificateFactoryImpl

string getAlgorithm() const
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. "RSA" would indicate that this key is a RSA key
Returns:
the name of the algorithm associated with this key.

string getFormat() const
Returns the standard format name such as "DER" to indicate using which format to encode the key

int getSize() const
Returns the size of the key

string encrypt(const string& data) const
Encrypt the data using standard algorithm "RSA"
Parameters:
string - & data plain-text string to be encrypted @eturn the encrypted string

string decrypt(const string& encrypted) const
Decrypts the encrypted string
Returns:
the decrypted string
Parameters:
string - & encrypted cipher-text to be decrypted

string paramString() const
Returns a string representation of this key for debugging purposes.
Returns:
debugging info

EVP_PKEY* getEVP_PKEY()
This should discourage clients not to mess around with implementation details

OpenSSLPublicKeyImpl(EVP_PKEY* evp)
The constructor is used by OpenSSLKeyFactoryImpl


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
OpenSSLKeyImpl
PublicKeyImpl
KeyPair
getPublicKey()
KeyFactory
getKeyEncoded(const string&, const PublicKey&)
initPublicKey(const string&, const string&, const string&)
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, const string&)
Signature
initVerify(const 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