12#include <boost/shared_ptr.hpp>
33 gss_ctx_id_t sec_ctx = GSS_C_NO_CONTEXT);
44 const std::vector<uint8_t>&
import);
70 std::time_t inception = std::chrono::system_clock::to_time_t(
inception_);
71 return (
static_cast<uint32_t
>(inception));
77 void setInception(
const std::chrono::system_clock::time_point& inception) {
84 std::chrono::system_clock::time_point
getExpire()
const {
92 std::time_t expire = std::chrono::system_clock::to_time_t(
expire_);
93 return (
static_cast<uint32_t
>(expire));
99 void setExpire(
const std::chrono::system_clock::time_point& expire) {
111 std::chrono::system_clock::time_point
expire_;
Statistics keeping extension of the DNS TSIGKey class.
GSS-API security context.
std::chrono::system_clock::time_point getInception() const
Get the key inception.
uint32_t getInception32() const
Get the key inception (32 bits).
std::chrono::system_clock::time_point expire_
The key expire date.
GssApiSecCtx & getSecCtx()
Get the security context.
uint32_t getExpire32() const
Get the key expire (32 bits).
GssTsigKey(const std::string &key_name, gss_ctx_id_t sec_ctx=GSS_C_NO_CONTEXT)
Constructor.
void setExpire(const std::chrono::system_clock::time_point &expire)
Set the key expire.
std::chrono::system_clock::time_point getExpire() const
Get the key expire.
void setInception(const std::chrono::system_clock::time_point &inception)
Set the key inception.
std::unique_ptr< GssApiSecCtx > sec_ctx_
GSS-API security context.
std::chrono::system_clock::time_point inception_
The key inception date.
virtual ~GssTsigKey()
Destructor.
C++ binding for the GSS-API.
boost::shared_ptr< GssTsigKey > GssTsigKeyPtr
Type of pointer to a GSS-TSIG key.
Defines the logger used by the top-level component of kea-lfc.