class  tcpsocket::PrivateKey
 Class to manage private key values
Child Classes
Class to manage private key values
- This class has no child classes.
 
Public Methods
- 
 PrivateKey()
 - 
 Constructs the private key
 - 
void* get()
 - 
 Provides a pointer to the EVP_PKEY data structure
 
 - 
PrivateKey::LoadResult loadDERFile(const std::string& filename)
 - 
 Loads a private key from a DER file
 
 - 
PrivateKey::LoadResult loadPEMFile(const std::string& filename, const char* password)
 - 
 Loads a private key from a PEM file
 
 - 
 ~PrivateKey()
 - 
 Destroys the private key
 
Public Members
enum  LoadResult
Results of loading a certificate
Member Documentation
 enum  LoadResult - Results of loading a certificate
  noError - no error occured
 
  fileNotFound - the file was not found
 
 
  PrivateKey ()- 
Constructs the private key
 
  ~PrivateKey ()- 
Destroys the private key
 
 PrivateKey::LoadResult loadPEMFile (const std::string& filename, const char* password)- 
Loads a private key from a PEM file
- Parameters:
 - the -  name of the file to load.
password -  [optional] a password controlling access to the file.
 - Returns:
 -   the success of loading the file
 
 
 PrivateKey::LoadResult loadDERFile (const std::string& filename)- 
Loads a private key from a DER file
- Parameters:
 - the -  name of the file to load.
 - Returns:
 -   the success of loading the file
 
 
 void* get ()- 
Provides a pointer to the EVP_PKEY data structure
- Returns:
 -   An OpenSSL 
EVP_PKEY* pointer cast to void*
 
 
Table of Contents  HTML hierarchy of classes or Java
Safmq Documentation, copyright (c) 2004-2010 Matthew J. Battey, Licensed Under Apache License Ver 2.0
Powered By: