namespace Akenti class SSLContextImpl : public SSLConstants

The base abstract class for security contexts

Inheritance:


Public Methods

virtual ~SSLContextImpl ()
Destructor
Version getVersion () const
Returns the version number of the security context provider
bool isClientContext ()
Returns true if this is a client context
void setVerify (int verify)
Sets the level of peer verfication that is required
virtual void setCertificateFile (const string& certFile, FileType type)
Sets the path name of the file that contains the principal's X
virtual void setPrivateKeyFile (const string& keyFile, FileType type)
Sets the path name of the file that contains the principal's private key
void setCAFile (const string& path, const string& name)
Sets the path name of the file that contains a trusted CA's X
virtual string paramString () const
Returns a string representation for SSLContextImpl which is used for debugging purposes

Documentation

The base abstract class for security contexts. A security context contains the values that a secure tranport protocol such as TLS needs. It may include such things as the private key and identity certificate of the principal represented, what level of peer certification is required, the required levels of message security, the ciphers supported, and the CA certificates of trusted CA's. The actual context is implmented in a concrete SSLcontext which is a subclass of the SSLContextImpl. It inherits the SSLConstants.
virtual ~SSLContextImpl()
Destructor

Version getVersion() const
Returns the version number of the security context provider

bool isClientContext()
Returns true if this is a client context

void setVerify(int verify)
Sets the level of peer verfication that is required.
Parameters:
verify - level. The choices for client contexts are: VERIFY_NONE VERIFY_PEER VERIFY_PEER | VERIFY_FAIL_IF_NO_PEER_CERT The following choices are also available for server contexts. VERIFY_PEER | VERIFY_CLIENT_ONCE VERIFY_PEER | VERIFY_FAIL_IF_NO_PEER_CERT | VERIFY_CLIENT_ONCE

virtual void setCertificateFile(const string& certFile, FileType type)
Sets the path name of the file that contains the principal's X.509 identity certificate.
Parameters:
certFile - Pathname of the file containing the identity cert.
type - either PEM or ASN1

virtual void setPrivateKeyFile(const string& keyFile, FileType type)
Sets the path name of the file that contains the principal's private key
Parameters:
keyFile - Pathname of the file containing the private key.
type - either PEM or ASN1

void setCAFile(const string& path, const string& name)
Sets the path name of the file that contains a trusted CA's X.509 identity certificate
Parameters:
path - Directory name of the file
name - file name of the file

virtual string paramString() const
Returns a string representation for SSLContextImpl which is used for debugging purposes.
Returns:
debugging info


Direct child classes:
OpenSSLContextImpl
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
SSLConstants
Version

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