LibLogicalAccess
2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
plugins
logicalaccess
plugins
cards
epass
epassidentitycardservice.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
logicalaccess/plugins/cards/epass/utils.hpp
>
4
#include <
logicalaccess/services/identity/identity_service.hpp
>
5
6
namespace
logicalaccess
7
{
8
#define IDENTITY_CARDSERVICE_EPASS "EPassIdentity"
9
10
class
EPassChip;
11
class
EPassAccessInfo;
12
class
LLA_CARDS_EPASS_API
EPassIdentityCardService
:
public
IdentityCardService
13
{
14
public
:
15
explicit
EPassIdentityCardService
(
const
std::shared_ptr<Chip> &chip);
16
17
std::chrono::system_clock::time_point getTime(
MetaData
what)
override
;
18
std::string getString(
MetaData
what)
override
;
19
ByteVector
getData(
MetaData
what)
override
;
20
21
std::string
getCSType
()
override
22
{
23
return
IDENTITY_CARDSERVICE_EPASS
;
24
}
25
int
verifyCertificate(
ByteVector
derCert,
ByteVector
x509Cert);
26
int
verifyCertificate(
ByteVector
x509Cert);
27
int
verifyCertificateWithMasterList(std::string matserlistPath);
28
int
verifyCertificateWithMasterList(
ByteVector
derCert, std::string path);
29
ByteVector
getCertificate();
30
static
std::vector<ByteVector> getCSCACertificatesFromMasterlist(std::string path);
31
static
ByteVector
binaryTo64Certificate(
ByteVector
derCert);
32
static
std::vector<ByteVector> extractCertificatesFromMasterList(
const
ByteVector
&bytes);
33
std::string getExpiryDate();
34
bool
isExpired();
35
protected
:
36
std::shared_ptr<EPassChip>
getEPassChip
()
const
;
37
41
std::shared_ptr<EPassAccessInfo> getEPassAccessInfo()
const
;
42
47
EPassDG1
getDG1();
48
std::string getName();
49
ByteVector
getPicture();
50
51
std::unique_ptr<EPassDG1>
dg1_cache_
;
52
};
53
}
getEPassChip
LLA_CARDS_EPASS_API void getEPassChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition:
libraryentry.cpp:13
logicalaccess::EPassIdentityCardService
Definition:
epassidentitycardservice.hpp:13
logicalaccess::EPassIdentityCardService::getCSType
std::string getCSType() override
Definition:
epassidentitycardservice.hpp:21
logicalaccess::EPassIdentityCardService::dg1_cache_
std::unique_ptr< EPassDG1 > dg1_cache_
Definition:
epassidentitycardservice.hpp:51
logicalaccess::IdentityCardService
Definition:
identity_service.hpp:11
logicalaccess::IdentityCardService::MetaData
MetaData
Definition:
identity_service.hpp:14
IDENTITY_CARDSERVICE_EPASS
#define IDENTITY_CARDSERVICE_EPASS
Definition:
epassidentitycardservice.hpp:8
identity_service.hpp
ByteVector
std::vector< uint8_t > ByteVector
Definition:
lla_fwd.hpp:80
logicalaccess
Definition:
asn1.hpp:9
utils.hpp
logicalaccess::EPassDG1
Definition:
utils.hpp:59
Generated on Wed Mar 29 2023 13:50:37 for LibLogicalAccess by
1.9.6