Keypop Calypso Card C++ API - 2.1.2
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
18
#include "
keypop/calypso/card/WriteAccessLevel.hpp
"
19
20
namespace
keypop
{
21
namespace
calypso {
22
namespace
card {
23
namespace
card {
24
30
class
DirectoryHeader
{
31
public
:
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 */
WriteAccessLevel.hpp
keypop::calypso::card::card::DirectoryHeader
Calypso DF metadata.
Definition:
DirectoryHeader.hpp:30
keypop::calypso::card::card::DirectoryHeader::~DirectoryHeader
virtual ~DirectoryHeader()=default
Virtual destructor.
keypop::calypso::card::card::DirectoryHeader::getLid
virtual uint16_t getLid() const =0
Gets the associated LID.
keypop::calypso::card::card::DirectoryHeader::getKeyIndexes
virtual const std::vector< uint8_t > & getKeyIndexes() const =0
Gets a reference to keys indexes.
keypop::calypso::card::card::DirectoryHeader::getAccessConditions
virtual const std::vector< uint8_t > & getAccessConditions() const =0
Gets a reference to access conditions.
keypop::calypso::card::card::DirectoryHeader::getKif
virtual uint8_t getKif(const WriteAccessLevel writeAccessLevel) const =0
Gets the KIF associated to the provided write access level.
keypop::calypso::card::card::DirectoryHeader::getKvc
virtual uint8_t getKvc(const WriteAccessLevel writeAccessLevel) const =0
Gets the KVC associated to the provided write access level.
keypop::calypso::card::card::DirectoryHeader::getDfStatus
virtual uint8_t getDfStatus() const =0
Gets the DF status.
keypop::calypso::card::WriteAccessLevel
WriteAccessLevel
Enumeration of the write access levels for the Calypso card Secure Session.
Definition:
WriteAccessLevel.hpp:27
keypop
Definition:
CalypsoCardApiFactory.hpp:30
keypop
calypso
card
card
DirectoryHeader.hpp
Generated by
1.9.2