Kea 3.0.0
isc::gss_tsig::GssApiName Class Reference

GSS-API name. More...

#include <gss_tsig_api.h>

Inheritance diagram for isc::gss_tsig::GssApiName:

Public Member Functions

 GssApiName ()
 Constructor.
 GssApiName (const std::string &gname)
 Constructor.
 ~GssApiName ()
 Destructor.
bool compare (GssApiName &other)
 Compare.
gss_name_t get ()
 Get the value.
gss_name_t * getPtr ()
 Get pointer.
std::string toString ()
 textual representation.
Public Member Functions inherited from isc::gss_tsig::GssApiLastError
 GssApiLastError ()
 Constructor.
virtual ~GssApiLastError ()
 Destructor.
int getLastError () const
 Get the last error.
void setLastError (int error)
 Set the last error.

Detailed Description

GSS-API name.

Encapsulate the gss_name_t GSS-API pointer type.

Note
: some methods should be const but this does not match the API.

Definition at line 187 of file gss_tsig_api.h.

Constructor & Destructor Documentation

◆ GssApiName() [1/2]

isc::gss_tsig::GssApiName::GssApiName ( )

Constructor.

Definition at line 170 of file gss_tsig_api.cc.

References isc::gss_tsig::GssApiLastError::GssApiLastError().

Referenced by compare().

Here is the call graph for this function:

◆ GssApiName() [2/2]

isc::gss_tsig::GssApiName::GssApiName ( const std::string & gname)
explicit

Constructor.

Parameters
gnameThe GSS-API name in a textual form.

Definition at line 173 of file gss_tsig_api.cc.

References isc::gss_tsig::GssApiLastError::GssApiLastError(), isc::gss_tsig::gssApiErrMsg(), and isc_throw.

Here is the call graph for this function:

◆ ~GssApiName()

isc::gss_tsig::GssApiName::~GssApiName ( )

Destructor.

Use gss_release_name GSS-API function.

Definition at line 189 of file gss_tsig_api.cc.

Member Function Documentation

◆ compare()

bool isc::gss_tsig::GssApiName::compare ( GssApiName & other)

Compare.

Use the gss_compare_name GSS-API funtion.

Parameters
otherOther GSS-API name.
Returns
true if identical, false if different.

Definition at line 200 of file gss_tsig_api.cc.

References GssApiName(), isc::gss_tsig::gssApiErrMsg(), isc_throw, and isc::gss_tsig::GssApiLastError::setLastError().

Here is the call graph for this function:

◆ get()

gss_name_t isc::gss_tsig::GssApiName::get ( )
inline

Get the value.

Definition at line 203 of file gss_tsig_api.h.

Referenced by isc::gss_tsig::GssApiCred::GssApiCred(), and isc::gss_tsig::GssApiSecCtx::init().

◆ getPtr()

gss_name_t * isc::gss_tsig::GssApiName::getPtr ( )
inline

Get pointer.

Returns
a pointer to the name.

Definition at line 210 of file gss_tsig_api.h.

Referenced by isc::gss_tsig::GssApiSecCtx::accept(), and isc::gss_tsig::GssApiSecCtx::inquire().

◆ toString()

string isc::gss_tsig::GssApiName::toString ( )

textual representation.

Use the gss_display_name GSS-API funtion.

Returns
a string representing the GSS-API name.

Definition at line 213 of file gss_tsig_api.cc.

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

Here is the call graph for this function:

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