68 parent_id_ = parent_id;
89 return (tkey_status_);
96 tkey_status_ = tkey_status;
114 static std::string
genName(
const std::string& server);
139 std::string parent_id_;
const Name & getKeyName() const
Getter Methods.
std::string toText() const
Converts the TSIGKey to a string value.
GssTsigKey(const std::string &key_name, gss_ctx_id_t sec_ctx=GSS_C_NO_CONTEXT)
Constructor.
std::string getKeyNameStr() const
Get the key name as a string.
static std::string genName(const std::string &server)
Create a random name from a suffix.
std::string getParentID() const
Get the DNS server (parent) ID.
virtual dns::TSIGContextPtr createContext()
Create GssTsigContext context.
isc::data::ElementPtr toElement() const
Unparse a key object.
boost::scoped_ptr< std::mutex > mutex_
Mutex for protecting key state.
void setTKeyStatus(TKeyExchange::Status tkey_status)
Set the TKEY exchange status.
TKeyExchangePtr & getTKeyExchange()
Get the TKEY exchange.
void setStatus(Status status)
Set the key status.
virtual ~ManagedKey()=default
Destructor.
void setParentID(const std::string &parent_id)
Set the DNS server (parent) ID.
TKeyExchange::Status getTKeyStatus() const
Get the TKEY exchange status.
static std::string statusToText(Status status)
Convert a status to its textual form.
Status getStatus() const
Get the key status.
ManagedKey(const std::string &name)
Constructor.
void operator()(TKeyExchange::Status tkey_status)
The TKEY exchange completion handler.
@ EXPIRED
Expired (no longer usable).
@ NOT_READY
Not yet ready (not yet usable).
Callback for the TKeyExchange class.
Status
A status code of the TKeyExchange.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< TSIGContext > TSIGContextPtr
boost::shared_ptr< TKeyExchange > TKeyExchangePtr
boost::shared_ptr< ManagedKey > ManagedKeyPtr
Type of pointer to a Managed GSS-TSIG key.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.