Botan 3.6.1
Crypto and TLS for C&
|
Manages calls to C_FindObjects* functions (C_FindObjectsInit -> C_FindObjects -> C_FindObjectsFinal) More...
#include <p11_object.h>
Public Member Functions | |
std::vector< ObjectHandle > | find (std::uint32_t max_count=100) const |
void | finish () |
Finishes the search operation manually to allow a new ObjectFinder to exist. | |
Module & | module () const |
ObjectFinder (const ObjectFinder &other)=default | |
ObjectFinder (ObjectFinder &&other)=default | |
ObjectFinder (Session &session, const std::vector< Attribute > &search_template) | |
ObjectFinder & | operator= (const ObjectFinder &other)=delete |
ObjectFinder & | operator= (ObjectFinder &&other)=delete |
~ObjectFinder () noexcept | |
Terminates a search for token and session objects (calls C_FindObjectsFinal) | |
Manages calls to C_FindObjects* functions (C_FindObjectsInit -> C_FindObjects -> C_FindObjectsFinal)
Definition at line 114 of file p11_object.h.
Botan::PKCS11::ObjectFinder::ObjectFinder | ( | Session & | session, |
const std::vector< Attribute > & | search_template ) |
Initializes a search for token and session objects that match a template (calls C_FindObjectsInit)
session | the session to use for the search |
search_template | the search_template as a vector of Attribute |
Definition at line 70 of file p11_object.cpp.
References Botan::PKCS11::LowLevel::C_FindObjectsInit(), and module().
|
default |
|
default |
|
noexcept |
Terminates a search for token and session objects (calls C_FindObjectsFinal)
Definition at line 77 of file p11_object.cpp.
References Botan::PKCS11::LowLevel::C_FindObjectsFinal(), and module().
std::vector< ObjectHandle > Botan::PKCS11::ObjectFinder::find | ( | std::uint32_t | max_count = 100 | ) | const |
Starts or continues a search for token and session objects that match a template, obtaining additional object handles (calls C_FindObjects)
max_count | maximum amount of object handles to retrieve. Default = 100 |
ObjectHandle
Definition at line 87 of file p11_object.cpp.
References Botan::PKCS11::LowLevel::C_FindObjects(), and module().
Referenced by Botan::PKCS11::Object::search().
void Botan::PKCS11::ObjectFinder::finish | ( | ) |
Finishes the search operation manually to allow a new ObjectFinder to exist.
Definition at line 97 of file p11_object.cpp.
References Botan::PKCS11::LowLevel::C_FindObjectsFinal(), and module().
|
inline |
ObjectFinder
belongs to Definition at line 143 of file p11_object.h.
References module().
Referenced by find(), finish(), module(), ObjectFinder(), and ~ObjectFinder().
|
delete |
|
delete |