Botan 3.6.1
Crypto and TLS for C&
|
Common attributes of all data objects. More...
#include <p11_object.h>
Public Member Functions | |
template<typename TAlloc > | |
void | add_binary (AttributeType attribute, const std::vector< uint8_t, TAlloc > &binary) |
void | add_binary (AttributeType attribute, const uint8_t *value, size_t length) |
void | add_bool (AttributeType attribute, bool value) |
void | add_class (ObjectClass object_class) |
template<typename T > requires std::is_integral<T>::value | |
void | add_numeric (AttributeType attribute, T value) |
void | add_string (AttributeType attribute, std::string_view value) |
const std::vector< Attribute > & | attributes () const |
size_t | count () const |
Attribute * | data () const |
DataObjectProperties () | |
ObjectClass | object_class () const |
void | set_application (std::string_view value) |
void | set_copyable (bool value) |
void | set_destroyable (bool value) |
void | set_label (std::string_view label) |
void | set_modifiable (bool value) |
void | set_object_id (const std::vector< uint8_t > &object_id) |
void | set_private (bool value) |
void | set_token (bool value) |
void | set_value (const secure_vector< uint8_t > &value) |
Protected Member Functions | |
void | add_attribute (AttributeType attribute, const uint8_t *value, Ulong size) |
Add an attribute with the given value and size to the attribute collection m_attributes | |
Common attributes of all data objects.
Definition at line 192 of file p11_object.h.
Botan::PKCS11::DataObjectProperties::DataObjectProperties | ( | ) |
Definition at line 113 of file p11_object.cpp.
|
protectedinherited |
Add an attribute with the given value and size to the attribute collection m_attributes
Definition at line 40 of file p11_object.cpp.
References Botan::PKCS11::AttributeContainer::data(), and CK_ATTRIBUTE::pValue.
Referenced by Botan::PKCS11::AttributeContainer::add_binary(), Botan::PKCS11::AttributeContainer::add_bool(), Botan::PKCS11::AttributeContainer::add_class(), and Botan::PKCS11::AttributeContainer::add_string().
|
inlineinherited |
Add a binary attribute (e.g. CKA_ID / AttributeType::Id).
attribute | attribute type |
binary | binary attribute value to add |
Definition at line 79 of file p11_object.h.
|
inherited |
Add a binary attribute (e.g. CKA_ID / AttributeType::Id).
attribute | attribute type |
value | binary attribute value to add |
length | size of the binary attribute value in bytes |
Definition at line 30 of file p11_object.cpp.
References Botan::PKCS11::AttributeContainer::add_attribute().
Referenced by Botan::PKCS11::Object::search(), and Botan::PKCS11::Object::search().
|
inherited |
Add a bool attribute (e.g. CKA_SENSITIVE / AttributeType::Sensitive).
attribute | attribute type |
value | boolean value to add |
Definition at line 35 of file p11_object.cpp.
References Botan::PKCS11::AttributeContainer::add_attribute(), Botan::PKCS11::False, and Botan::PKCS11::True.
|
inherited |
Add a class attribute (CKA_CLASS / AttributeType::Class).
object_class | class attribute to add |
Definition at line 18 of file p11_object.cpp.
References Botan::PKCS11::AttributeContainer::add_attribute(), and Botan::PKCS11::Class.
Referenced by Botan::PKCS11::AttributeContainer::AttributeContainer().
|
inlineinherited |
Add a numeric attribute (e.g. CKA_MODULUS_BITS / AttributeType::ModulusBits).
attribute | attribute type |
value | numeric value to add |
Definition at line 97 of file p11_object.h.
References T.
Referenced by Botan::PKCS11::CertificateProperties::CertificateProperties(), Botan::PKCS11::DomainParameterProperties::DomainParameterProperties(), and Botan::PKCS11::KeyProperties::KeyProperties().
|
inherited |
Add a string attribute (e.g. CKA_LABEL / AttributeType::Label).
attribute | attribute type |
value | string value to add |
Definition at line 24 of file p11_object.cpp.
References Botan::PKCS11::AttributeContainer::add_attribute().
Referenced by Botan::PKCS11::Object::search(), and Botan::PKCS11::Object::search().
|
inlineinherited |
Definition at line 44 of file p11_object.h.
Referenced by Botan::PKCS11::Object::search(), Botan::PKCS11::Object::search(), and Botan::PKCS11::Object::search().
|
inlineinherited |
Definition at line 50 of file p11_object.h.
Referenced by Botan::PKCS11::Object::copy(), and Botan::PKCS11::Object::Object().
|
inlineinherited |
Definition at line 47 of file p11_object.h.
Referenced by Botan::PKCS11::AttributeContainer::add_attribute(), Botan::PKCS11::Object::copy(), and Botan::PKCS11::Object::Object().
|
inlineinherited |
Definition at line 157 of file p11_object.h.
|
inline |
value | description of the application that manages the object (RFC2279 string) |
Definition at line 197 of file p11_object.h.
|
inlineinherited |
value | if true the object can be copied using C_CopyObject |
Definition at line 185 of file p11_object.h.
|
inlineinherited |
value | if true the object can be destroyed using C_DestroyObject |
Definition at line 188 of file p11_object.h.
|
inlineinherited |
label | description of the object (RFC2279 string) |
Definition at line 170 of file p11_object.h.
|
inlineinherited |
value | if true the object can be modified, otherwise it is read-only |
Definition at line 182 of file p11_object.h.
|
inline |
object_id | DER-encoding of the object identifier indicating the data object type |
Definition at line 200 of file p11_object.h.
|
inlineinherited |
value | if true the object is a private object; otherwise the object is a public object When private, a user may not access the object until the user has been authenticated to the token |
Definition at line 179 of file p11_object.h.
|
inlineinherited |
value | if true the object is a token object; otherwise the object is a session object |
Definition at line 173 of file p11_object.h.
|
inline |