AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkPkcs11::PKCS11Slot Class Reference

PKCS11 slot wrapper. More...

#include <PKCS11Slot.h>

Public Member Functions

 PKCS11Slot (std::shared_ptr< PKCS11Functions > &&functions, CK_SLOT_ID slotId) noexcept
 Constructs slot object. More...
 
bool getTokenName (std::string &tokenName) noexcept
 Returns token name. More...
 
std::shared_ptr< PKCS11SessionopenSession () noexcept
 Opens a new session for this slot. More...
 

Detailed Description

PKCS11 slot wrapper.

This class wraps PKCS#11 slot handle and related operations.

Constructor & Destructor Documentation

◆ PKCS11Slot()

alexaClientSDK::acsdkPkcs11::PKCS11Slot::PKCS11Slot ( std::shared_ptr< PKCS11Functions > &&  functions,
CK_SLOT_ID  slotId 
)
noexcept

Constructs slot object.

Parameters
[in]functionsOwner with function table.
[in]slotIdPKCS11 slot identifier.

Member Function Documentation

◆ getTokenName()

bool alexaClientSDK::acsdkPkcs11::PKCS11Slot::getTokenName ( std::string &  tokenName)
noexcept

Returns token name.

Parameters
[out]tokenNameToken name.
Returns
True if operation is successful.

◆ openSession()

std::shared_ptr< PKCS11Session > alexaClientSDK::acsdkPkcs11::PKCS11Slot::openSession ( )
noexcept

Opens a new session for this slot.

Returns
Session reference or nullptr on error.

The documentation for this class was generated from the following files:

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0