class Akenti::SSLContextImpl

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

Inheritance:


Public Methods

[more]virtual ~SSLContextImpl ()
Destructor
[more]Version getVersion () const
Returns the version number of the security context provider
[more]bool isClientContext ()
Returns true if this is a client context
[more]void setVerify (int verify)
Sets the level of peer verfication that is required.
[more]virtual void setCertificateFile (const string& certFile, FileType type = SSLConstants::PEM)
Sets the path name of the file that contains the principal's X509 identity certificate.
[more]virtual void setPrivateKeyFile (const string& keyFile, FileType type = SSLConstants::PEM)
Sets the path name of the file that contains the principal's private key
[more]virtual void addTrustedCA (const Certificate& cert)
Adds a trusted ca
[more]virtual void setTrustedCAS (const string& filename)
Sets the trusted cas.
[more]virtual string paramString () const
Returns debugging info


Documentation

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

ovirtual ~SSLContextImpl()
Destructor

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

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

ovoid setVerify(int verify)
Sets the level of peer verfication that is required.

    *   @param 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
    *  

ovirtual void setCertificateFile(const string& certFile, FileType type = SSLConstants::PEM) = 0
Sets the path name of the file that contains the principal's X509 identity certificate.

Parameters:
certFile - Pathname of the file containing the identity cert.
type - either PEM or ASN1

ovirtual void setPrivateKeyFile(const string& keyFile, FileType type = SSLConstants::PEM) = 0
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

ovirtual void addTrustedCA(const Certificate& cert) = 0
Adds a trusted ca

ovirtual void setTrustedCAS(const string& filename) = 0
Sets the trusted cas.

Parameters:
name - name of a file or directrory

ovirtual 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.