Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_SSL_State_Guard Class Reference

This Class that sets up TSS SSL states upon instantiation, and tears down the TSS SSL state when that instance goes out of scope. More...

#include <SSLIOP_Connection_Handler.h>

Collaboration diagram for TAO_SSL_State_Guard:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_SSL_State_Guard (TAO_SSLIOP_Connection_Handler *handler, int &result)
 Constructor that sets up the TSS SSL state.

 ~TAO_SSL_State_Guard (void)
 Destructor that tears down the TSS SSL state.


Private Attributes

TAO_SSLIOP_Connection_Handlerhandler_
TAO_SSLIOP_Current_Implprevious_current_impl_
TAO_SSLIOP_Current_Impl current_impl_
CORBA::Boolean setup_done_

Detailed Description

This Class that sets up TSS SSL states upon instantiation, and tears down the TSS SSL state when that instance goes out of scope.

This guard is used to make TSS SSL state configuration and deconfiguration during an upcall exception safe. Exceptions are not supposed to be propagated up to the scope this guard is used in, so this guard may be unnecessary. However, since proper TSS SSL state configuration/deconfiguration is critical to proper security support, this guard is used to ensure that configuration/deconfiguration is exception safe.


Constructor & Destructor Documentation

ACE_INLINE TAO_SSL_State_Guard::TAO_SSL_State_Guard TAO_SSLIOP_Connection_Handler   handler,
int &    result
 

Constructor that sets up the TSS SSL state.

ACE_INLINE TAO_SSL_State_Guard::~TAO_SSL_State_Guard void   
 

Destructor that tears down the TSS SSL state.


Member Data Documentation

TAO_SSLIOP_Current_Impl TAO_SSL_State_Guard::current_impl_ [private]
 

The SSLIOP::Current implementation to be associated with the current invocation.

TAO_SSLIOP_Connection_Handler* TAO_SSL_State_Guard::handler_ [private]
 

Pointer to the connection handler currently handling the request/upcall.

TAO_SSLIOP_Current_Impl* TAO_SSL_State_Guard::previous_current_impl_ [private]
 

It is stored here until the invocation completes, after which it placed back into TSS.

CORBA::Boolean TAO_SSL_State_Guard::setup_done_ [private]
 

Flag that specifies whether or not setup of the SSLIOP::Current object completed for the current thread and invocation.


The documentation for this class was generated from the following files:
Generated on Fri Apr 2 19:12:54 2004 for TAO_SSLIOP by doxygen1.2.18