#include <payload_nonce.h>
Inheritance diagram for openikev2::Payload_NONCE:

Public Member Functions | |
| Payload_NONCE () | |
| Creates a new Payload_NONCE, calculating randomly its length and its value. | |
| Payload_NONCE (uint16_t nonce_length) | |
| Creates a new Payload_NONCE, setting its length. | |
| Payload_NONCE (const Payload_NONCE &other) | |
| Creates a new Payload_NONCE cloning another one. | |
| Payload_NONCE (ByteBuffer &byte_buffer) | |
| Creates a new Payload_NONCE based on its binary representation. | |
| virtual ByteArray & | getNonceValue () |
| Gets the nonce value. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const |
| Appends the binary representation of the Payload at the end of the buffer, without the fixed header. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
| virtual auto_ptr< Payload > | clone () const |
| Cets a clone of this payload. | |
Protected Attributes | |
| auto_ptr< ByteArray > | nonce |
| Random value. | |
| openikev2::Payload_NONCE::Payload_NONCE | ( | uint16_t | nonce_length | ) |
Creates a new Payload_NONCE, setting its length.
| nonce_length | Length of the random value in bytes (must be between 16 and 256 both inclusive). |
| openikev2::Payload_NONCE::Payload_NONCE | ( | const Payload_NONCE & | other | ) |
Creates a new Payload_NONCE cloning another one.
| other | Another Payload_NONCE to be copied |
| openikev2::Payload_NONCE::Payload_NONCE | ( | ByteBuffer & | byte_buffer | ) |
Creates a new Payload_NONCE based on its binary representation.
| byte_buffer | Buffer with its read pointer at the "payload length" field |
| ByteArray & openikev2::Payload_NONCE::getNonceValue | ( | ) | [virtual] |
Gets the nonce value.
| void openikev2::Payload_NONCE::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [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 |
Implements openikev2::Payload.
| string openikev2::Payload_NONCE::toStringTab | ( | uint8_t | tabs | ) | const [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::Payload.
| auto_ptr< Payload > openikev2::Payload_NONCE::clone | ( | ) | const [virtual] |
1.5.1