namespace Akenti class SSLContextImpl : public SSLConstants

Interface for security contexts that mainly hold credentials and trusted ca infos

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 = SSLConstants::PEM)
Sets the path name of the file that contains the principal's X
virtual void setPrivateKeyFile (const string& keyFile, FileType type = SSLConstants::PEM)
Sets the path name of the file that contains the principal's private key
virtual void addTrustedCA (const Certificate& cert)
Adds a trusted ca
virtual void setTrustedCAS (const string& filename)
Sets the trusted cas
virtual string paramString () const
Returns debugging info

Documentation

Interface for security contexts that mainly hold credentials and trusted ca infos.
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 = SSLConstants::PEM)
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 = SSLConstants::PEM)
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

virtual void addTrustedCA(const Certificate& cert)
Adds a trusted ca

virtual void setTrustedCAS(const string& filename)
Sets the trusted cas.
Parameters:
name - name of a file or directrory

virtual string paramString() const
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