#include <payload_ke.h>
Inheritance diagram for openikev2::Payload_KE:

Public Member Functions | |
| Payload_KE (DiffieHellman &diffie_hellman) | |
| Creates a new Payload_KE using a DiffieHellman object to extract necesary info. | |
| Payload_KE (ByteBuffer &byte_buffer) | |
| Creates a new Payload_KE based on its binary representation. | |
| Payload_KE (const Payload_KE &other) | |
| Creates a new Payload_KE cloning another one. | |
| virtual ByteArray & | getPublicKey () |
| Gets public key contained in the payload. | |
| 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. | |
Public Attributes | |
| Enums::DH_ID | group |
| Diffie-Hellan group id. | |
Protected Attributes | |
| auto_ptr< ByteArray > | public_key |
| Public key transported by the payload. | |
| openikev2::Payload_KE::Payload_KE | ( | DiffieHellman & | diffie_hellman | ) |
Creates a new Payload_KE using a DiffieHellman object to extract necesary info.
| diffie_hellman | DiffeHellman object. |
| openikev2::Payload_KE::Payload_KE | ( | ByteBuffer & | byte_buffer | ) |
Creates a new Payload_KE based on its binary representation.
| byte_buffer | Buffer with its read pointer at the "payload length" field |
| openikev2::Payload_KE::Payload_KE | ( | const Payload_KE & | other | ) |
| ByteArray & openikev2::Payload_KE::getPublicKey | ( | ) | [virtual] |
Gets public key contained in the payload.
| void openikev2::Payload_KE::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_KE::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_KE::clone | ( | ) | const [virtual] |
1.5.1