Skip to content

mock_key_provider.cpp

GitHub Actions edited this page Jan 2, 2026 · 1 revision

mock_key_provider.cpp

Stand: 5. Dezember 2025
Version: 1.0.0
Kategorie: Src


Path: src/security/mock_key_provider.cpp

Purpose: Test key provider used in unit tests to simulate key retrieval and signing operations.

Public functions / symbols:

  • for (const auto& [version, entry] : keys_[key_id]) {
  • if (entry.metadata.status == KeyStatus::ACTIVE && version > latest_version) {
  • ``
  • if (version > max_version) {
  • for (auto& [version, entry] : keys_[key_id]) {
  • if (entry.metadata.status == KeyStatus::ACTIVE) {
  • for (const auto& [version, entry] : versions) {
  • for (const auto& [v, entry] : keys_[key_id]) {
  • if (entry.metadata.status == KeyStatus::ACTIVE && v > latest_version) {
  • if (entry.metadata.created_at_ms == 0) {
  • for (auto& byte : key) {
  • std::lock_guard<std::mutex> lock(mutex_);
  • throw KeyNotFoundException(key_id, 0);
  • throw KeyOperationException("No ACTIVE key found for: " + key_id);
  • throw KeyNotFoundException(key_id, version);
  • std::vector<uint8_t> key(32); // 256 bits
  • MockKeyProvider::MockKeyProvider() {

ThemisDB Dokumentation

Version: 1.3.0 | Stand: Dezember 2025


📋 Schnellstart


🏗️ Architektur


🗄️ Basismodell


💾 Storage & MVCC


📇 Indexe & Statistiken


🔍 Query & AQL


💰 Caching


📦 Content Pipeline


🔎 Suche


⚡ Performance & Benchmarks


🏢 Enterprise Features


✅ Qualitätssicherung


🧮 Vektor & GNN


🌍 Geo Features


🛡️ Sicherheit & Governance

Authentication

Schlüsselverwaltung

Verschlüsselung

TLS & Certificates

PKI & Signatures

PII Detection

Vault & HSM

Audit & Compliance

Security Audits

Gap Analysis


🚀 Deployment & Betrieb

Docker

Observability

Change Data Capture

Operations


💻 Entwicklung

API Implementations

Changefeed

Security Development

Development Overviews


📄 Publikation & Ablage


🔧 Admin-Tools


🔌 APIs


📚 Client SDKs


📊 Implementierungs-Zusammenfassungen


📅 Planung & Reports


📖 Dokumentation


📝 Release Notes


📖 Styleguide & Glossar


🗺️ Roadmap & Changelog


💾 Source Code Documentation

Main Programs

Source Code Module


🗄️ Archive


🤝 Community & Support


Vollständige Dokumentation: https://makr-code.github.io/ThemisDB/

Clone this wiki locally