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

SST::IdentHostState Class Reference

Per-host state for the Ident module. More...

#include <ident.h>

Inheritance diagram for SST::IdentHostState:

SST::Host List of all members.

Public Member Functions

Ident hostIdent (bool create=true)
 Obtain our own global primary host identity and private key.

void setHostIdent (const Ident &ident)
 Set our primary host identity.

void initHostIdent (QSettings *settings)
 Initialize our primary host identity using a QSettings registry for persistence.


Detailed Description

Per-host state for the Ident module.


Member Function Documentation

Ident IdentHostState::hostIdent bool  create = true  ) 
 

Obtain our own global primary host identity and private key.

Parameters:
create If true (the default), generates a new identity and private key if one isn't already set. If false, just returns a null Ident in that case.
Returns:
the primary host identity.

void IdentHostState::initHostIdent QSettings *  settings  ) 
 

Initialize our primary host identity using a QSettings registry for persistence.

Looks for the tags 'id' and 'key' in the provided settings, and if they contain a valid host identity and private key, uses them to set the primary host identity. Otherwise, generates a new primary host identity and encodes them into the provided settings for future invocations of the application.

This function does nothing if the primary host identity is already initialized and contains a valid private key.

Parameters:
settings the settings registry to use for persistence.

void IdentHostState::setHostIdent const Ident ident  ) 
 

Set our primary host identity.

Parameters:
ident the new host identity to set, which should include a private key.


The documentation for this class was generated from the following files:
Generated on Wed Mar 28 11:48:05 2007 for SST by doxygen 1.3.4