![]() |
Kea 3.1.5
|
RADIUS attribute holding vsa. More...
#include <client_attribute.h>
Inheritance diagram for isc::radius::AttrVsa:Public Member Functions | |
| virtual size_t | getValueLen () const override |
| Value length. | |
| virtual AttrValueType | getValueType () const override |
| Get value type. | |
| virtual std::vector< uint8_t > | toBytes () const override |
| To bytes. | |
| virtual data::ElementPtr | toElement () const override |
| Unparse attribute. | |
| virtual std::string | toText (size_t indent=0) const override |
| Returns text representation of the attribute. | |
| virtual uint32_t | toVendorId () const override |
| To vendor id. | |
| virtual std::vector< uint8_t > | toVsaData () const override |
| To vsa data. | |
Public Member Functions inherited from isc::radius::Attribute | |
| virtual | ~Attribute ()=default |
| Virtual destructor. | |
| uint8_t | getType () const |
| Get type. | |
| virtual std::vector< uint8_t > | toBinary () const |
| To binary. | |
| virtual uint32_t | toInt () const |
| To integer. | |
| virtual asiolink::IOAddress | toIpAddr () const |
| To IPv4 address. | |
| virtual asiolink::IOAddress | toIpv6Addr () const |
| To IPv6 address. | |
| virtual asiolink::IOAddress | toIpv6Prefix () const |
| To IPv6 prefix. | |
| virtual uint8_t | toIpv6PrefixLen () const |
| To IPv6 prefix length. | |
| virtual std::string | toString () const |
| Specific get methods. | |
Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. | |
Protected Member Functions | |
| AttrVsa (const uint8_t type, const uint32_t vendor, const std::string &value) | |
| Constructor. | |
| AttrVsa (const uint8_t type, const uint32_t vendor, const std::vector< uint8_t > &value) | |
| Constructor. | |
Protected Member Functions inherited from isc::radius::Attribute | |
| Attribute (const uint8_t type) | |
| Constructor. | |
Static Protected Member Functions | |
| static AttributePtr | fromBytes (const uint8_t type, const std::vector< uint8_t > &bytes) |
| From bytes. | |
| static AttributePtr | fromText (const uint8_t type, const std::string &repr) |
| From text. | |
Friends | |
| class | Attribute |
| Make Attribute a friend class. | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::radius::Attribute | |
| static AttributePtr | fromBinary (const uint8_t type, const std::vector< uint8_t > &value) |
| From binary with type. | |
| static AttributePtr | fromBytes (const AttrDefPtr &def, const std::vector< uint8_t > &value) |
| From bytes with definition (handle vendor). | |
| static AttributePtr | fromBytes (const std::vector< uint8_t > &bytes) |
| Generic factories. | |
| static AttributePtr | fromInt (const uint8_t type, const uint32_t value) |
| From integer with type. | |
| static AttributePtr | fromIpAddr (const uint8_t type, const asiolink::IOAddress &value) |
| From IPv4 address with type. | |
| static AttributePtr | fromIpv6Addr (const uint8_t type, const asiolink::IOAddress &value) |
| From IPv6 address with type. | |
| static AttributePtr | fromIpv6Prefix (const uint8_t type, const uint8_t len, const asiolink::IOAddress &value) |
| From IPv6 prefix with type. | |
| static AttributePtr | fromString (const uint8_t type, const std::string &value) |
| From type specific factories. | |
| static AttributePtr | fromText (const AttrDefPtr &def, const std::string &value) |
| From definition generic factories. | |
| static AttributePtr | fromVsa (const uint8_t type, const uint32_t vendor, const std::string &value) |
| From Vendor ID and string data with type. | |
| static AttributePtr | fromVsa (const uint8_t type, const uint32_t vendor, const std::vector< uint8_t > &value) |
| From Vendor ID and binary data with type. | |
Public Attributes inherited from isc::radius::Attribute | |
| const uint8_t | type_ |
| Type. | |
RADIUS attribute holding vsa.
Definition at line 717 of file client_attribute.h.
|
inlineprotected |
Constructor.
| type | attribute type. |
| vendor | vendor id. |
| value | string vsa data. |
Definition at line 725 of file client_attribute.h.
References Attribute, and if().
Referenced by fromBytes().
Here is the call graph for this function:
|
protected |
Constructor.
| type | attribute type. |
| vendor | vendor id. |
| value | binary vsa data. |
Definition at line 648 of file client_attribute.cc.
References Attribute, and if().
Here is the call graph for this function:
|
staticprotected |
From bytes.
| type | attribute type. |
| bytes | binary value. |
Definition at line 668 of file client_attribute.cc.
References AttrVsa(), and isc_throw.
Here is the call graph for this function:
|
staticprotected |
From text.
| type | attribute type. |
| repr | value representation. |
| NotImplemented |
Definition at line 663 of file client_attribute.cc.
References isc_throw.
|
inlineoverridevirtual |
Value length.
Implements isc::radius::Attribute.
Definition at line 776 of file client_attribute.h.
Referenced by toBytes().
|
inlineoverridevirtual |
Get value type.
Implements isc::radius::Attribute.
Definition at line 769 of file client_attribute.h.
References isc::radius::PW_TYPE_VSA.
|
overridevirtual |
To bytes.
Implements isc::radius::Attribute.
Definition at line 708 of file client_attribute.cc.
References isc::radius::Attribute::getType(), and getValueLen().
Here is the call graph for this function:
|
overridevirtual |
Unparse attribute.
Implements isc::data::CfgToElement.
Definition at line 734 of file client_attribute.cc.
References Element::create(), Element::createMap(), isc::util::encode::encodeHex(), isc::radius::AttrDefs::getByType(), isc::radius::Attribute::getType(), and isc::radius::AttrDefs::instance().
Here is the call graph for this function:
|
overridevirtual |
Returns text representation of the attribute.
| indent | number of spaces before printing text. |
Implements isc::radius::Attribute.
Definition at line 691 of file client_attribute.cc.
References isc::util::encode::encodeHex(), isc::radius::AttrDefs::getName(), isc::radius::Attribute::getType(), and isc::radius::AttrDefs::instance().
Here is the call graph for this function:
|
inlineoverridevirtual |
To vendor id.
Reimplemented from isc::radius::Attribute.
Definition at line 794 of file client_attribute.h.
|
overridevirtual |
To vsa data.
Reimplemented from isc::radius::Attribute.
Definition at line 724 of file client_attribute.cc.
|
friend |