SSLIOP_OwnCredentials.cpp

Go to the documentation of this file.
00001 // SSLIOP_OwnCredentials.cpp,v 1.8 2006/03/14 06:14:35 jtc Exp
00002 
00003 #include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
00004 
00005 
00006 ACE_RCSID (SSLIOP,
00007            SSLIOP_OwnCredentials,
00008            "SSLIOP_OwnCredentials.cpp,v 1.8 2006/03/14 06:14:35 jtc Exp")
00009 
00010 
00011 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00012 
00013 TAO::SSLIOP::OwnCredentials::OwnCredentials (X509 *cert, EVP_PKEY *evp)
00014   : SSLIOP_Credentials (cert, evp)
00015 {
00016 }
00017 
00018 TAO::SSLIOP::OwnCredentials::~OwnCredentials (void)
00019 {
00020 }
00021 
00022 TAO::SSLIOP::OwnCredentials_ptr
00023 TAO::SSLIOP::OwnCredentials::_duplicate (TAO::SSLIOP::OwnCredentials_ptr obj)
00024 {
00025   if (!CORBA::is_nil (obj))
00026     obj->_add_ref ();
00027 
00028   return obj;
00029 }
00030 
00031 TAO::SSLIOP::OwnCredentials_ptr
00032 TAO::SSLIOP::OwnCredentials::_narrow (CORBA::Object_ptr obj
00033                                       ACE_ENV_ARG_DECL_NOT_USED)
00034 {
00035   return  TAO::SSLIOP::OwnCredentials::_duplicate (
00036               dynamic_cast<TAO::SSLIOP::OwnCredentials *> (obj));
00037 }
00038 
00039 TAO::SSLIOP::OwnCredentials_ptr
00040 TAO::SSLIOP::OwnCredentials::_nil (void)
00041 {
00042   return (OwnCredentials *) 0;
00043 
00044 }
00045 
00046 SecurityLevel3::CredentialsType
00047 TAO::SSLIOP::OwnCredentials::creds_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00048   ACE_THROW_SPEC ((CORBA::SystemException))
00049 {
00050   return SecurityLevel3::CT_OwnCredentials;
00051 }
00052 
00053 SecurityLevel3::CredsInitiator_ptr
00054 TAO::SSLIOP::OwnCredentials::creds_initiator (ACE_ENV_SINGLE_ARG_DECL)
00055   ACE_THROW_SPEC ((CORBA::SystemException))
00056 {
00057   ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (),
00058                     SecurityLevel3::CredsInitiator::_nil ());
00059 }
00060 
00061 SecurityLevel3::CredsAcceptor_ptr
00062 TAO::SSLIOP::OwnCredentials::creds_acceptor (ACE_ENV_SINGLE_ARG_DECL)
00063   ACE_THROW_SPEC ((CORBA::SystemException))
00064 {
00065   ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (),
00066                     SecurityLevel3::CredsAcceptor::_nil ());
00067 }
00068 
00069 void
00070 TAO::SSLIOP::OwnCredentials::release_credentials (
00071     ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00072   ACE_THROW_SPEC ((CORBA::SystemException))
00073 {
00074   this->creds_state_ = SecurityLevel3::CS_PendingRelease;
00075 }
00076 
00077 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:54:14 2006 for TAO_SSLIOP by doxygen 1.3.6