 |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ACSDKPKCS11_PRIVATE_PKCS11SESSION_H_
17 #define ACSDKPKCS11_PRIVATE_PKCS11SESSION_H_
26 namespace acsdkPkcs11 {
28 class PKCS11Functions;
38 class PKCS11Session :
public std::enable_shared_from_this<PKCS11Session> {
50 bool logIn(
const std::string& userPin) noexcept;
78 PKCS11Session(
const std::shared_ptr<PKCS11Functions>& functions, CK_SESSION_HANDLE sessionHandle) noexcept;
85 bool closeSession() noexcept;
94 CK_SESSION_HANDLE m_sessionHandle;
100 #endif // ACSDKPKCS11_PRIVATE_PKCS11SESSION_H_
PKCS11 session wrapper.
Definition: PKCS11Session.h:38
PKCS11 API Wrapper.
Definition: PKCS11Functions.h:47
~PKCS11Session() noexcept
Public destructor (closes session).
Definition: PKCS11Session.cpp:39
PKCS11 slot wrapper.
Definition: PKCS11Slot.h:36
bool logOut() noexcept
Log out from HSM.
Definition: PKCS11Session.cpp:63
Class to identify key object in HSM.
Definition: PKCS11KeyDescriptor.h:36
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::unique_ptr< PKCS11Key > findKey(const PKCS11KeyDescriptor &descriptor) noexcept
Loads existing key.
Definition: PKCS11Session.cpp:88
Definition: CapabilityConfiguration.h:190
PKCS11 key object wrapper.
Definition: PKCS11Key.h:38
AlgorithmType
Enumeration of all supported encryption protocols.
Definition: AlgorithmType.h:31
bool logIn(const std::string &userPin) noexcept
Log into HSM.
Definition: PKCS11Session.cpp:43
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0