#include <transform.h>
Inheritance diagram for openikev2::Transform:

Public Member Functions | |
| Transform (Enums::TRANSFORM_TYPE type, uint16_t id) | |
| Creates a new Transform, setting its type and its id. | |
| Transform (Enums::TRANSFORM_TYPE type, uint16_t id, uint16_t keylen) | |
| Creates a new Transform, setting its type, its id and adding a TransformAttribute of type ATTR_KEY_LEN. | |
| Transform (ByteBuffer &byte_buffer) | |
| Creates a new Transform based on its binary representation. | |
| auto_ptr< Transform > | clone () const |
| Creates a new Transform clonning this. | |
| void | addAttribute (auto_ptr< TransformAttribute > attribute) |
| Adds a TransformAttribute to the Transform. | |
| bool | hasAttribute (const TransformAttribute &transform_attribute) const |
| Indicates if the Transform has the indicate attribute. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const |
| Appends the binary representation of the Transform in the ByteBuffer. | |
| virtual bool | operator== (const Transform &other) const |
| Compares if this Transform object is equal to other. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Public Attributes | |
| uint16_t | id |
| ID of the transform (DES, 3DES, . | |
| Enums::TRANSFORM_TYPE | type |
| Type of the transform (ENCR, PRF, . | |
| AutoVector< TransformAttribute > | attributes |
| Transform attributes collection. | |
| openikev2::Transform::Transform | ( | Enums::TRANSFORM_TYPE | type, | |
| uint16_t | id | |||
| ) |
| openikev2::Transform::Transform | ( | Enums::TRANSFORM_TYPE | type, | |
| uint16_t | id, | |||
| uint16_t | keylen | |||
| ) |
Creates a new Transform, setting its type, its id and adding a TransformAttribute of type ATTR_KEY_LEN.
| type | Type of the transform (ENCR, PRF, ...) | |
| id | ID of the transform (DES, 3DES, ...) | |
| keylen | Value of the ATTR_KEY_LEN attribute |
| openikev2::Transform::Transform | ( | ByteBuffer & | byte_buffer | ) |
Creates a new Transform based on its binary representation.
| byte_buffer | Buffer with its read pointer at the "transform length" field |
| auto_ptr< Transform > openikev2::Transform::clone | ( | ) | const |
| void openikev2::Transform::addAttribute | ( | auto_ptr< TransformAttribute > | attribute | ) |
| bool openikev2::Transform::hasAttribute | ( | const TransformAttribute & | transform_attribute | ) | const |
Indicates if the Transform has the indicate attribute.
| transform_attribute | Searched TransformAttribute |
| void openikev2::Transform::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [virtual] |
Appends the binary representation of the Transform in the ByteBuffer.
| byte_buffer | ByteBuffer where append the binary representation |
| bool openikev2::Transform::operator== | ( | const Transform & | other | ) | const [virtual] |
| string openikev2::Transform::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::Printable.
| uint16_t openikev2::Transform::id |
ID of the transform (DES, 3DES, .
..)
Type of the transform (ENCR, PRF, .
..)
1.5.1