Supports an early step in using octopus services: getting an identity. More...
#include <identity_tentacle.h>


Public Member Functions | |
| identity_tentacle (octopus &parent) | |
| the "parent" will provide the real identity services. | |
| virtual | ~identity_tentacle () |
| DEFINE_CLASS_NAME ("identity_tentacle") | |
| virtual basis::outcome | reconstitute (const structures::string_array &classifier, basis::byte_array &packed_form, infoton *&reformed) |
| reinflates an infoton given that we know the type in "classifier". | |
| virtual basis::outcome | consume (infoton &to_chow, const octopus_request_id &item_id, basis::byte_array &transformed) |
| chews on the "to_chow" infoton to perform the requested action. | |
Supports an early step in using octopus services: getting an identity.
Definition at line 29 of file identity_tentacle.h.
| octopi::identity_tentacle::identity_tentacle | ( | octopus & | parent | ) |
the "parent" will provide the real identity services.
Definition at line 36 of file identity_tentacle.cpp.
| octopi::identity_tentacle::~identity_tentacle | ( | ) | [virtual] |
Definition at line 42 of file identity_tentacle.cpp.
| outcome octopi::identity_tentacle::consume | ( | infoton & | to_chow, | |
| const octopus_request_id & | item_id, | |||
| basis::byte_array & | transformed | |||
| ) | [virtual] |
chews on the "to_chow" infoton to perform the requested action.
if it's an identity_infoton, then a new identity is provided. otherwise, the identity is given rudimentary checks for validity and the infoton is passed along.
Implements octopi::tentacle.
Definition at line 54 of file identity_tentacle.cpp.
References octopi::identity_infoton::_new_name, octopi::identity_infoton::clone(), octopi::tentacle::DISALLOWED, FUNCDEF, octopi::octopus::issue_identity(), LOG, octopi::octopus_entity::mangled_form(), octopi::octopus_request_id::mangled_form(), octopi::tentacle::NO_SPACE, octopi::tentacle::OKAY, octopi::tentacle::PARTIAL, basis::array< contents >::reset(), and octopi::tentacle::store_product().
| octopi::identity_tentacle::DEFINE_CLASS_NAME | ( | "identity_tentacle" | ) |
| outcome octopi::identity_tentacle::reconstitute | ( | const structures::string_array & | classifier, | |
| basis::byte_array & | packed_form, | |||
| infoton *& | reformed | |||
| ) | [virtual] |
reinflates an infoton given that we know the type in "classifier".
recreates a "reformed" infoton from the "classifier" and packed infoton data in "packed_form". this will only succeed if the classifier's first name is understood here.
Reimplemented from octopi::tentacle_helper< identity_infoton >.
Definition at line 44 of file identity_tentacle.cpp.
References octopi::identity_infoton::identity_classifier(), NIL, octopi::tentacle::NO_HANDLER, and octopi::reconstituter().
1.6.3