Keypop Calypso Card C++ API - 2.2.0
Component of the Keypop C++ API
DirectoryHeader.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#pragma once
14
15#include <cstdint>
16#include <vector>
17
19
20namespace keypop {
21namespace calypso {
22namespace card {
23namespace card {
24
31public:
35 virtual ~DirectoryHeader() = default;
36
43 virtual uint16_t getLid() const = 0;
44
51 virtual uint8_t getDfStatus() const = 0;
52
59 virtual const std::vector<uint8_t>& getAccessConditions() const = 0;
60
67 virtual const std::vector<uint8_t>& getKeyIndexes() const = 0;
68
77 virtual uint8_t getKif(const WriteAccessLevel writeAccessLevel) const = 0;
78
87 virtual uint8_t getKvc(const WriteAccessLevel writeAccessLevel) const = 0;
88};
89
90} /* namespace card */
91} /* namespace card */
92} /* namespace calypso */
93} /* namespace keypop */
virtual ~DirectoryHeader()=default
Virtual destructor.
virtual uint16_t getLid() const =0
Gets the associated LID.
virtual const std::vector< uint8_t > & getKeyIndexes() const =0
Gets a reference to keys indexes.
virtual const std::vector< uint8_t > & getAccessConditions() const =0
Gets a reference to access conditions.
virtual uint8_t getKif(const WriteAccessLevel writeAccessLevel) const =0
Gets the KIF associated to the provided write access level.
virtual uint8_t getKvc(const WriteAccessLevel writeAccessLevel) const =0
Gets the KVC associated to the provided write access level.
virtual uint8_t getDfStatus() const =0
Gets the DF status.
WriteAccessLevel
Enumeration of the write access levels for the Calypso card Secure Session.