00001 /* 00002 * SecurityManager.h 00003 * 00004 * Created on: 27.07.2009 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef SECURITYMANAGER_H_ 00009 #define SECURITYMANAGER_H_ 00010 00011 #include "ibrdtn/api/Bundle.h" 00012 00013 namespace dtn 00014 { 00015 namespace api 00016 { 00017 class SecurityManager 00018 { 00019 public: 00020 virtual ~SecurityManager(); 00021 00025 static void initialize(string privKey, string pubKey, string ca); 00026 00030 static void setDefault(Bundle::BUNDLE_SECURITY s); 00031 00035 static Bundle::BUNDLE_SECURITY getDefault(); 00036 00040 static bool validate(dtn::api::Bundle b); 00041 00042 private: 00046 SecurityManager(); 00047 00051 SecurityManager(SecurityManager&) {}; 00052 00053 static Bundle::BUNDLE_SECURITY _default; 00054 00055 }; 00056 } 00057 } 00058 00059 #endif /* SECURITYMANAGER_H_ */
1.7.1