#include <payload.h>
Inheritance diagram for openikev2::Payload:

Public Types | |
| enum | PAYLOAD_TYPE { PAYLOAD_NONE = 0, PAYLOAD_SA = 33, PAYLOAD_KE, PAYLOAD_IDi, PAYLOAD_IDr, PAYLOAD_CERT, PAYLOAD_CERT_REQ, PAYLOAD_AUTH, PAYLOAD_NONCE, PAYLOAD_NOTIFY, PAYLOAD_DEL, PAYLOAD_VENDOR, PAYLOAD_TSi, PAYLOAD_TSr, PAYLOAD_SK, PAYLOAD_CONF, PAYLOAD_EAP } |
| Payload types. More... | |
Public Member Functions | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const=0 |
| Appends the binary representation of the Payload at the end of the buffer, without the fixed header. | |
| virtual auto_ptr< Payload > | clone () const=0 |
| Cets a clone of this payload. | |
| virtual string | toStringTab (uint8_t tabs) const =0 |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Static Public Member Functions | |
| static string | PAYLOAD_TYPE_STR (Payload::PAYLOAD_TYPE type) |
| Returns the textual representation of a PAYLOAD_TYPE value. | |
Public Attributes | |
| PAYLOAD_TYPE | type |
| Payload type. | |
| bool | critical |
| Indicates if this payload is critical. | |
Protected Member Functions | |
| Payload (Payload::PAYLOAD_TYPE type, bool critical) | |
| Creates a new Payload. | |
Payload types.
| PAYLOAD_NONE | Payload NONE. |
| PAYLOAD_SA | Security Association Payload. |
| PAYLOAD_KE | Key Exchange Payload. |
| PAYLOAD_IDi | Identification (initiartor) Payload. |
| PAYLOAD_IDr | Identification (responder) Payload. |
| PAYLOAD_CERT | Certificate Payload. |
| PAYLOAD_CERT_REQ | Certificate Request Payload. |
| PAYLOAD_AUTH | Authentication Payload. |
| PAYLOAD_NONCE | Nonce Payload. |
| PAYLOAD_NOTIFY | Notify Payload. |
| PAYLOAD_DEL | Delete Payload. |
| PAYLOAD_VENDOR | Vendor Payload. |
| PAYLOAD_TSi | Traffic Selector (initiator) Payload. |
| PAYLOAD_TSr | Traffic Selector (responder) Payload. |
| PAYLOAD_SK | Encrypted Payload. |
| PAYLOAD_CONF | Configuration Payload. |
| PAYLOAD_EAP | Extensible Authentication Payload. |
| openikev2::Payload::Payload | ( | Payload::PAYLOAD_TYPE | type, | |
| bool | critical | |||
| ) | [protected] |
| string openikev2::Payload::PAYLOAD_TYPE_STR | ( | Payload::PAYLOAD_TYPE | type | ) | [static] |
Returns the textual representation of a PAYLOAD_TYPE value.
| type | Payload type |
| virtual void openikev2::Payload::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [pure virtual] |
Appends the binary representation of the Payload at the end of the buffer, without the fixed header.
| byte_buffer | Byte buffer where append the binary representation |
Implemented in openikev2::Payload_AUTH, openikev2::Payload_CERT, openikev2::Payload_CERT_REQ, openikev2::Payload_CONF, openikev2::Payload_DEL, openikev2::Payload_EAP, openikev2::Payload_ID, openikev2::Payload_KE, openikev2::Payload_NONCE, openikev2::Payload_NOTIFY, openikev2::Payload_SA, openikev2::Payload_SK, openikev2::Payload_TS, and openikev2::Payload_VENDOR.
| virtual auto_ptr<Payload> openikev2::Payload::clone | ( | ) | const [pure virtual] |
Cets a clone of this payload.
Implemented in openikev2::Payload_AUTH, openikev2::Payload_CERT, openikev2::Payload_CERT_REQ, openikev2::Payload_CONF, openikev2::Payload_DEL, openikev2::Payload_EAP, openikev2::Payload_ID, openikev2::Payload_KE, openikev2::Payload_NONCE, openikev2::Payload_NOTIFY, openikev2::Payload_SA, openikev2::Payload_SK, openikev2::Payload_TS, and openikev2::Payload_VENDOR.
| virtual string openikev2::Payload::toStringTab | ( | uint8_t | tabs | ) | const [pure virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Printable.
Implemented in openikev2::Payload_AUTH, openikev2::Payload_CERT, openikev2::Payload_CERT_REQ, openikev2::Payload_CONF, openikev2::Payload_DEL, openikev2::Payload_EAP, openikev2::Payload_ID, openikev2::Payload_KE, openikev2::Payload_NONCE, openikev2::Payload_NOTIFY, openikev2::Payload_SA, openikev2::Payload_SK, openikev2::Payload_TS, and openikev2::Payload_VENDOR.
1.5.1