00001 // $Id: SSLIOP_OwnCredentials.cpp 77001 2007-02-12 07:54:49Z johnnyw $ 00002 00003 #include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h" 00004 00005 00006 ACE_RCSID (SSLIOP, 00007 SSLIOP_OwnCredentials, 00008 "$Id: SSLIOP_OwnCredentials.cpp 77001 2007-02-12 07:54:49Z johnnyw $") 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 { 00034 return TAO::SSLIOP::OwnCredentials::_duplicate ( 00035 dynamic_cast<TAO::SSLIOP::OwnCredentials *> (obj)); 00036 } 00037 00038 TAO::SSLIOP::OwnCredentials_ptr 00039 TAO::SSLIOP::OwnCredentials::_nil (void) 00040 { 00041 return (OwnCredentials *) 0; 00042 00043 } 00044 00045 SecurityLevel3::CredentialsType 00046 TAO::SSLIOP::OwnCredentials::creds_type (void) 00047 { 00048 return SecurityLevel3::CT_OwnCredentials; 00049 } 00050 00051 SecurityLevel3::CredsInitiator_ptr 00052 TAO::SSLIOP::OwnCredentials::creds_initiator (void) 00053 { 00054 throw CORBA::NO_IMPLEMENT (); 00055 } 00056 00057 SecurityLevel3::CredsAcceptor_ptr 00058 TAO::SSLIOP::OwnCredentials::creds_acceptor (void) 00059 { 00060 throw CORBA::NO_IMPLEMENT (); 00061 } 00062 00063 void 00064 TAO::SSLIOP::OwnCredentials::release_credentials () 00065 { 00066 this->creds_state_ = SecurityLevel3::CS_PendingRelease; 00067 } 00068 00069 TAO_END_VERSIONED_NAMESPACE_DECL