Kea 2.7.7
default_credentials.h
Go to the documentation of this file.
1// Copyright (C) 2024-2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef DEFAULT_CREDENTIALS_H
8#define DEFAULT_CREDENTIALS_H
9
11#include <unordered_set>
12#include <string>
13
14namespace isc {
15namespace data {
16
19public:
20 DefaultCredential(const char* file, size_t line, const char* what) :
21 isc::Exception(file, line, what) { }
22};
23
27 static const std::unordered_set<std::string> DEFAULT_CREDENTIALS;
28
33 static void check(const std::string& value);
34};
35
36} // end of isc::dhcp namespace
37} // end of isc namespace
38
39
40#endif // DEFAULT_CREDENTIALS_H
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception thrown on attempt to use a default credential.
DefaultCredential(const char *file, size_t line, const char *what)
Defines the logger used by the top-level component of kea-lfc.
Base class for default credentials.
static const std::unordered_set< std::string > DEFAULT_CREDENTIALS
Default credentials.
static void check(const std::string &value)
Check if the value is a default credential.