feisty meow concerns codebase  2.140
cromp_security.h
Go to the documentation of this file.
1 #ifndef CROMP_SECURITY_CLASS
2 #define CROMP_SECURITY_CLASS
3 
4 /***
5 * *
6 * Name : cromp_security
7 * Author : Chris Koeritz
8 * Copyright (c) 2002-$now By Author. This program is free software; you can *
9 * redistribute it and/or modify it under the terms of the GNU General Public *
10 * License as published by the Free Software Foundation; either version 2 of *
11 * the License or (at your option) any later version. This is online at: *
12 * http://www.fsf.org/copyleft/gpl.html *
13 * Please send any updates to: fred@gruntose.com *
14 \*****************************************************************************/
15 
16 #include <basis/contracts.h>
18 #include <sockets/tcpip_stack.h>
19 
20 namespace cromp {
21 
23 
28 {
29 public:
31  virtual ~cromp_security();
32 
33  DEFINE_CLASS_NAME("cromp_security");
34 
35  virtual bool add_entity(const octopi::octopus_entity &client,
36  const basis::byte_array &verification);
37 
38  // stronger security models can be implemented by overriding add_entity().
39  // this object merely verifies that we have seen the entity get issued
40  // by the current server.
41 
42 private:
43  sockets::tcpip_stack *_stack; // enables access to tcpip functionality.
44 };
45 
46 } //namespace.
47 
48 #endif
49 
A very common template for a dynamic array of bytes.
Definition: byte_array.h:36
Implements the client registry in a cromp-appropriate manner.
DEFINE_CLASS_NAME("cromp_security")
virtual bool add_entity(const octopi::octopus_entity &client, const basis::byte_array &verification)
adds the "entity" to the list of authorized users.
Provides a way of identifying users of an octopus object.
Definition: entity_defs.h:35
Provides a basic implementation of an entity_registry for octopus.
Helpful functions for interacting with TCP/IP stacks.
Definition: tcpip_stack.h:38