112 const void* secret,
size_t secret_len,
size_t digestbits = 0);
136 explicit TSIGKey(
const std::string& str);
203 std::string
toText()
const;
223 boost::shared_ptr<TSIGKeyImpl> impl_;
271 code(param_code),
key(param_key) {
306 unsigned int size()
const;
379 boost::shared_ptr<TSIGKeyRingImpl> impl_;
The Name class encapsulates DNS names.
A simple repository of a set of TSIGKey objects.
~TSIGKeyRing()
The destructor.
unsigned int size() const
Return the number of keys stored in the TSIGKeyRing.
Result remove(const Name &key_name)
Remove a TSIGKey for the given name from the TSIGKeyRing.
TSIGKeyRing()
The default constructor.
Result add(const TSIGKey &key)
Add a TSIGKey to the TSIGKeyRing.
FindResult find(const Name &key_name) const
Find a TSIGKey for the given name in the TSIGKeyRing.
Result
Result codes of various public methods of TSIGKeyRing.
static const Name & HMACMD5_NAME()
Well known algorithm names as defined in RFC2845 and RFC4635.
static const Name & HMACSHA224_NAME()
const Name & getAlgorithmName() const
Return the algorithm name.
virtual ~TSIGKey()
The destructor.
static const Name & GSSTSIG_NAME()
size_t getDigestbits() const
Return the minimum truncated length.
static const Name & HMACSHA256_NAME()
TSIGKey & operator=(const TSIGKey &source)
Assignment operator.
isc::cryptolink::HashAlgorithm getAlgorithm() const
Return the hash algorithm name in the form of cryptolink::HashAlgorithm.
static const Name & HMACSHA1_NAME()
const Name & getKeyName() const
Getter Methods.
static const Name & HMACMD5_SHORT_NAME()
static const Name & HMACSHA512_NAME()
TSIGKey(const Name &key_name, const Name &algorithm_name, const void *secret, size_t secret_len, size_t digestbits=0)
Constructors, Assignment Operator and Destructor.
static const Name & HMACSHA384_NAME()
std::string toText() const
Converts the TSIGKey to a string value.
size_t getSecretLength() const
Return the length of the TSIG secret in bytes.
const void * getSecret() const
Return the value of the TSIG secret.
HashAlgorithm
Hash algorithm identifiers.
Defines the logger used by the top-level component of kea-lfc.
A helper structure to represent the search result of TSIGKeyRing::find().
FindResult(Result param_code, const TSIGKey *param_key)