Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

glite::rgma::SSLContextProperties Class Reference

#include <SSLContextProperties.h>

List of all members.

Public Member Functions

 SSLContextProperties () throw (RGMAException)
bool useCertificateAndKey () const
std::string gridProxyFile () const
std::string sslCAFiles () const
std::string sslCertFile () const
std::string sslKey () const
bool sslKeyPasswordPresent (std::string &value) const


Detailed Description

Simple class for encapuslating the handling of the properties needed to establish the SSL context. In general these hold files that contain keys and certificates.


Constructor & Destructor Documentation

glite::rgma::SSLContextProperties::SSLContextProperties  )  throw (RGMAException)
 

This class handles the SSL context properties. These are read from a properties file specified by the environment variable TRUSTFILE.

If the environment variable/file doesn't exist then the grid proxy file is used, and its definition is taken from the environment variable X509_USER_PROXY.

It contains properties in the usual format: property=value

The properties recognised are: gridProxyFile - where the grid proxy file is located. If TRUSTFILE absent, then environment variable X509_USER_PROXY replaces the property. sslCAFiles - where the CA certificates are located. Default is /etc/grid-security sslCertFile - The SSL certificate file name. sslKey - The SSL key file name. sslKeyPassword - The passphrase for the SSL key if it is password protected.


The documentation for this class was generated from the following files:
Generated on Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5