Kea 3.0.0
isc::gss_tsig::GssApiCred Class Reference

GSS-API credential. More...

#include <gss_tsig_api.h>

Inheritance diagram for isc::gss_tsig::GssApiCred:

Public Member Functions

 GssApiCred ()
 Constructor.
 GssApiCred (GssApiName &gname, gss_cred_usage_t cred_usage, OM_uint32 &lifetime)
 Constructor.
 ~GssApiCred ()
 Destructor.
gss_cred_id_t get ()
 Get the value.
void inquire (GssApiName &name, gss_cred_usage_t &cred_usage, OM_uint32 &lifetime)
 Inquire.
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 credential.

Encapsulate the gss_cred_id_t GSS-API pointer type.

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

Definition at line 242 of file gss_tsig_api.h.

Constructor & Destructor Documentation

◆ GssApiCred() [1/2]

isc::gss_tsig::GssApiCred::GssApiCred ( )

Constructor.

Definition at line 225 of file gss_tsig_api.cc.

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

Here is the call graph for this function:

◆ GssApiCred() [2/2]

isc::gss_tsig::GssApiCred::GssApiCred ( GssApiName & gname,
gss_cred_usage_t cred_usage,
OM_uint32 & lifetime )

Constructor.

Use the gss_acquire_cred GSS-API function.

Parameters
gnameDesired GSS-API name.
cred_usageCredential usage (GSS_C_INITIATE or GSS_C_ACCEPT).
[out]lifetimeValidity lifetime (number of seconds from now).

Definition at line 228 of file gss_tsig_api.cc.

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

Here is the call graph for this function:

◆ ~GssApiCred()

isc::gss_tsig::GssApiCred::~GssApiCred ( )

Destructor.

Use the gss_release_cred GSS-API function

Definition at line 244 of file gss_tsig_api.cc.

Member Function Documentation

◆ get()

gss_cred_id_t isc::gss_tsig::GssApiCred::get ( )
inline

Get the value.

Definition at line 263 of file gss_tsig_api.h.

Referenced by isc::gss_tsig::GssApiSecCtx::accept().

◆ inquire()

void isc::gss_tsig::GssApiCred::inquire ( GssApiName & name,
gss_cred_usage_t & cred_usage,
OM_uint32 & lifetime )

Inquire.

Use the gss_inquire_cred GSS-API function.

Parameters
[out]nameGSS-API name.
[out]cred_usageCredential usage.
[out]lifetimeValidity lifetime (number of seconds from now).

Definition at line 255 of file gss_tsig_api.cc.

References 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: