class ProviderImpl

A ProviderImpl object provides applications with engines that implement security algorithms

Inheritance:


Public Methods

virtual ~ProviderImpl ()
Deletes this object
virtual void loadDigestAlgorithms ()
Loads MessageDigest algorithms
virtual bool isDigestAlgorithmSupported (const string& alg) const
Returns true if alg is supported
virtual MessageDigest getMessageDigest (const string& alg) const
Returns a MessageDigest engine given the name of a standard algorithm specified by alg such as MD5
virtual void loadSignatureAlgorithms ()
Loads Signature algorithms
virtual bool isSignatureAlgorithmSupported (const string& alg) const
Returns true if alg is supported
virtual Signature getSignature (const string& alg) const
Returns a Signature engine given the name of a standard algorithm specified by alg such as RSA-MD5 or RSA-SHA1
virtual void loadCipherAlgorithms ()
Loads Cipher algorithms
virtual bool isCipherAlgorithmSupported (const string& alg) const
Returns true if alg is supported
virtual Cipher getCipher (const string& alg) const
Returns a Cipher engine given the name of a standard algorithm specified by alg such as DES-CBC or RC4 For convenience, the Cipher::getInstance() can be used
virtual bool seedRandomGenerator (const string& seed)
virtual Base64 getBase64 () const
Returns a Base64 object
virtual KeyStore getKeyStore (const string& type) const
virtual KeyFactory getKeyFactory () const
Returns a KeyFactory object
virtual CertificateFactory getCertificateFactory () const
Returns a CertificateFactory object
virtual Hmac getHmac (const string& alg) const
virtual SSLContext createSSLContext (SSLConstants::Version version, bool isClient) const
Create a either a server or client security context
virtual SecureSocketImpl* createSecureSocketImpl (const SSLContext& ctx) const
Interface to create a SecureSocketImpl
virtual string toDerString (const DistinguishedName& dn) const

Protected Methods

ProviderImpl ()
Constructs this object

Documentation

A ProviderImpl object provides applications with engines that implement security algorithms. Applications must install a provider at startup.
virtual ~ProviderImpl()
Deletes this object

virtual void loadDigestAlgorithms()
Loads MessageDigest algorithms

virtual bool isDigestAlgorithmSupported(const string& alg) const
Returns true if alg is supported.
Returns:
true if alg is supported, false otherwise

virtual MessageDigest getMessageDigest(const string& alg) const
Returns a MessageDigest engine given the name of a standard algorithm specified by alg such as MD5. For convenience , the MessageDigest::getInstance() can be used.
Throws:
SecurityException if algorithm is not supported
Returns:
a MessageDigest engine.
Parameters:
alg - string standard name of an algorithm
See Also:
loadDigestAlgorithms()
isDigestAlgorithmSupported(const string&)
getInstance(const string& alg)

virtual void loadSignatureAlgorithms()
Loads Signature algorithms

virtual bool isSignatureAlgorithmSupported(const string& alg) const
Returns true if alg is supported.
Returns:
true if alg is supported, false otherwise

virtual Signature getSignature(const string& alg) const
Returns a Signature engine given the name of a standard algorithm specified by alg such as RSA-MD5 or RSA-SHA1. For convenience , the Signature::getInstance() can be used.
Throws:
SecurityException if algorithm is not supported
Returns:
a Signature engine
Parameters:
alg - string standard name of a Signature algorithm
See Also:
loadSignatureAlgorithms()
sSignatureAlgorithmSupported(const string&)
getInstance(const string& alg)

virtual void loadCipherAlgorithms()
Loads Cipher algorithms

virtual bool isCipherAlgorithmSupported(const string& alg) const
Returns true if alg is supported.
Returns:
true if alg is supported, false otherwise

virtual Cipher getCipher(const string& alg) const
Returns a Cipher engine given the name of a standard algorithm specified by alg such as DES-CBC or RC4 For convenience, the Cipher::getInstance() can be used.
Throws:
SecurityException if algorithm is not supported
Returns:
a Cipher engine
Parameters:
alg - string standard name of a Cipher algorithm
See Also:
loadCipherAlgorithms()
isCipherAlgorithmSupported(const string&)
getInstance(const string& alg)

virtual bool seedRandomGenerator(const string& seed)

virtual Base64 getBase64() const
Returns a Base64 object. Applications need not call this function. Instead, the static method Base64::getInstance() should be used.
Returns:
a Base64 object
See Also:
getInstance()
Base64Impl

virtual KeyStore getKeyStore(const string& type) const

virtual KeyFactory getKeyFactory() const
Returns a KeyFactory object. Applications need not call this function. Instead, the static method KeyFactory::getInstance() should be used.
Returns:
a KeyFactory object
See Also:
getInstance()
KeyFactoryImpl

virtual CertificateFactory getCertificateFactory() const
Returns a CertificateFactory object. Applications need not call this function. Instead, the static method CertificateFactory#getInstance() should be used.
Returns:
a CertificateFactory object
See Also:
getInstance()
CertificateFactoryImpl

virtual Hmac getHmac(const string& alg) const

virtual SSLContext createSSLContext(SSLConstants::Version version, bool isClient) const
Create a either a server or client security context. The concrete ProviderImpl can create whatever sort of security context it needs.
Returns:
A security context
Parameters:
context - version number

virtual SecureSocketImpl* createSecureSocketImpl(const SSLContext& ctx) const
Interface to create a SecureSocketImpl. The concrete providerImpl should create the type of SecureSocketImpl it needs.

virtual string toDerString(const DistinguishedName& dn) const

ProviderImpl()
Constructs this object


Direct child classes:
OpenSSLProviderImpl
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
setProvider(Provider&)

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