IBR-DTN  1.0.0
KeyExchangeEvent.h
Go to the documentation of this file.
1 /*
2  * KeyExchangeEvent.h
3  *
4  * Copyright (C) 2014 IBR, TU Braunschweig
5  *
6  * Written-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
7  * Thomas Schrader <schrader.thomas@gmail.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22 
23 #ifndef KEYEXCHANGEEVENT_H_
24 #define KEYEXCHANGEEVENT_H_
25 
26 #include "core/Event.h"
27 #include "ibrdtn/data/EID.h"
28 
30 
31 #include <string>
32 
33 namespace dtn
34 {
35  namespace security
36  {
38  {
39  public:
40  virtual ~KeyExchangeEvent();
41 
42  const dtn::data::EID& getEID() const;
44 
45  const std::string getName() const;
46  std::string getMessage() const;
47 
48  static void raise(const dtn::data::EID &eid, const dtn::security::KeyExchangeData &data);
49 
50  static const std::string className;
51 
52  private:
53 
55 
56  const dtn::data::EID _eid;
58  };
59 
60  } /* namespace security */
61 } /* namespace dtn */
62 
63 #endif /* KEYEXCHANGEEVENT_H_ */
static const std::string className
const dtn::security::KeyExchangeData & getData() const
const std::string getName() const
const dtn::data::EID & getEID() const