Kea 3.1.1
isc::gss_tsig::GssApiOid Class Reference

GSS-API OID. More...

#include <gss_tsig_api.h>

+ Inheritance diagram for isc::gss_tsig::GssApiOid:

Public Member Functions

 GssApiOid ()
 Constructor.
 
 GssApiOid (const std::string &str)
 Constructor.
 
 GssApiOid (const std::vector< uint8_t > &elements)
 Constructor.
 
 ~GssApiOid ()
 Destructor.
 
gss_OID get ()
 Get the value.
 
std::string toString ()
 Get textual representation.
 

Detailed Description

GSS-API OID.

Encapsulate the gss_OID GSS-API pointer type.

Note
: gss_release_oid() releases the descriptor too so this class encapsulate the gss_OID pointer type (vs the gss_OID_desc (structure with length and elements) type.

Definition at line 414 of file gss_tsig_api.h.

Constructor & Destructor Documentation

◆ GssApiOid() [1/3]

isc::gss_tsig::GssApiOid::GssApiOid ( )

Constructor.

Definition at line 433 of file gss_tsig_api.cc.

References isc_throw.

◆ GssApiOid() [2/3]

isc::gss_tsig::GssApiOid::GssApiOid ( const std::vector< uint8_t > & elements)
explicit

Constructor.

Parameters
elementsElements as a vector of bytes.

Definition at line 444 of file gss_tsig_api.cc.

References isc_throw.

◆ GssApiOid() [3/3]

isc::gss_tsig::GssApiOid::GssApiOid ( const std::string & str)
explicit

Constructor.

Use the gss_str_to_oid GSS-API function.

Note
: is not available on Heimdal.
Parameters
strTextual representation.

Definition at line 471 of file gss_tsig_api.cc.

References isc::gss_tsig::GssApiBuffer::getPtr(), isc::gss_tsig::gssApiErrMsg(), and isc_throw.

+ Here is the call graph for this function:

◆ ~GssApiOid()

isc::gss_tsig::GssApiOid::~GssApiOid ( )

Destructor.

Use the gss_release_oid GSS-API function.

Definition at line 485 of file gss_tsig_api.cc.

Member Function Documentation

◆ get()

gss_OID isc::gss_tsig::GssApiOid::get ( )
inline

Get the value.

Definition at line 439 of file gss_tsig_api.h.

◆ toString()

string isc::gss_tsig::GssApiOid::toString ( )

Get textual representation.

Use the gss_oid_to_str GSS-API function.

Returns
A textual representation.

Definition at line 496 of file gss_tsig_api.cc.

References isc::gss_tsig::GssApiBuffer::getPtr(), isc::gss_tsig::GssApiBuffer::getString(), isc::gss_tsig::gssApiErrMsg(), and isc_throw.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: