1 #ifndef SECURITY_INFOTON_CLASS
2 #define SECURITY_INFOTON_CLASS
57 virtual clonable *
clone()
const;
a_sprintf is a specialization of astring that provides printf style support.
Provides a dynamically resizable ASCII character string.
Defines the base class for all string processing objects in hoople.
virtual base_string & assign(const base_string &s)=0
Sets the contents of this string to "s".
A very common template for a dynamic array of bytes.
Outcomes describe the state of completion for an operation.
virtual const char * class_name() const =0
Returns the bare name of this class as a constant character pointer.
An infoton is an individual request parcel with accompanying information.
Encapsulates security activities (login, logout, refresh).
virtual void text_form(basis::base_string &fill) const
requires derived infotons to be able to show their state as a string.
@ LI_REFRESH
the requester is still alive and wants to keep its login.
@ LI_LOGIN
the requester wants to log in as a new entity.
@ LI_LOGOUT
the requester surrenders its login.
basis::outcome _success
did the request succeed?
DEFINE_CLASS_NAME("security_infoton")
virtual void pack(basis::byte_array &packed_form) const
stuffs the data in the infoton into the "packed_form".
virtual int packed_size() const
reports how large the infoton will be when packed.
const basis::byte_array & verification() const
virtual clonable * clone() const
must be provided to allow creation of a copy of this object.
virtual ~security_infoton()
login_modes _mode
what kind of request is being made here?
virtual bool unpack(basis::byte_array &packed_form)
restores an infoton from a packed form.
static const structures::string_array & security_classifier()
returns the classifier for this type of infoton.
security_infoton & operator=(const security_infoton &to_copy)
An array of strings with some additional helpful methods.