BuiltInSecurityPluginInst.cpp

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #include "dds/DCPS/security/BuiltInSecurityPluginInst.h"
00009 #include "dds/DCPS/security/AccessControlBuiltInImpl.h"
00010 #include "dds/DCPS/security/AuthenticationBuiltInImpl.h"
00011 #include "dds/DCPS/security/CryptoBuiltInImpl.h"
00012 
00013 namespace OpenDDS {
00014 namespace Security {
00015 
00016 using DDS::Security::CryptoKeyExchange;
00017 using DDS::Security::CryptoTransform;
00018 
00019 BuiltInSecurityPluginInst::BuiltInSecurityPluginInst()
00020   : authentication_(new AuthenticationBuiltInImpl)
00021   , access_control_(new AccessControlBuiltInImpl)
00022   , key_factory_(new CryptoBuiltInImpl)
00023   , key_exchange_(CryptoKeyExchange::_narrow(key_factory_))
00024   , transform_(CryptoTransform::_narrow(key_factory_))
00025 {
00026 }
00027 
00028 BuiltInSecurityPluginInst::~BuiltInSecurityPluginInst()
00029 {
00030 }
00031 
00032 Authentication_var BuiltInSecurityPluginInst::create_authentication()
00033 {
00034   return authentication_;
00035 }
00036 
00037 AccessControl_var BuiltInSecurityPluginInst::create_access_control()
00038 {
00039   return access_control_;
00040 }
00041 
00042 CryptoKeyFactory_var BuiltInSecurityPluginInst::create_crypto_key_factory()
00043 {
00044   return key_factory_;
00045 }
00046 
00047 CryptoKeyExchange_var BuiltInSecurityPluginInst::create_crypto_key_exchange()
00048 {
00049   return key_exchange_;
00050 }
00051 
00052 CryptoTransform_var BuiltInSecurityPluginInst::create_crypto_transform()
00053 {
00054   return transform_;
00055 }
00056 
00057 void BuiltInSecurityPluginInst::shutdown()
00058 {
00059   // No actions
00060 }
00061 
00062 } // namespace Security
00063 } // namespace OpenDDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1