MySQL 8.0.39
Source Code Documentation
|
A class that implements proxy keyring component services and calls keyring plugin APIs underneath. More...
Static Public Member Functions | |
static mysql_service_status_t | generate (const char *data_id, const char *auth_id, const char *data_type, size_t data_size) noexcept |
Generate data and store in keyring. More... | |
static mysql_service_status_t | init (my_h_keyring_keys_metadata_iterator *forward_iterator) noexcept |
Forward iterator initialization. More... | |
static mysql_service_status_t | deinit (my_h_keyring_keys_metadata_iterator forward_iterator) noexcept |
Iterator deinitialization. More... | |
static mysql_service_status_t | is_valid (my_h_keyring_keys_metadata_iterator forward_iterator) noexcept |
Validity of iterator. More... | |
static mysql_service_status_t | next (my_h_keyring_keys_metadata_iterator forward_iterator) noexcept |
static mysql_service_status_t | get_length (my_h_keyring_keys_metadata_iterator forward_iterator, size_t *data_id_length, size_t *auth_id_length) noexcept |
Fetch metadata for current key pointed by iterator and move the iterator forward. More... | |
static mysql_service_status_t | get (my_h_keyring_keys_metadata_iterator forward_iterator, char *data_id, size_t data_id_length, char *auth_id, size_t auth_id_length) noexcept |
Fetch metadata for current key pointed by iterator and move the iterator forward. More... | |
static mysql_service_status_t | reader_init (const char *data_id, const char *auth_id, my_h_keyring_reader_object *reader_object) noexcept |
Initialize reader. More... | |
static mysql_service_status_t | reader_deinit (my_h_keyring_reader_object reader_object) noexcept |
Deinitialize reader. More... | |
static mysql_service_status_t | fetch_length (my_h_keyring_reader_object reader_object, size_t *data_size, size_t *data_type_size) noexcept |
Fetch length of the data. More... | |
static mysql_service_status_t | fetch (my_h_keyring_reader_object reader_object, unsigned char *data_buffer, size_t data_buffer_length, size_t *data_size, char *data_type, size_t data_type_buffer_length, size_t *data_type_size) noexcept |
Fetches data from keyring. More... | |
static mysql_service_status_t | store (const char *data_id, const char *auth_id, const unsigned char *data, size_t data_size, const char *data_type) noexcept |
Store data in keyring. More... | |
static mysql_service_status_t | remove (const char *data_id, const char *auth_id) noexcept |
Remove data from keyring. More... | |
static mysql_service_status_t | keyring_status () noexcept |
Keyring status. More... | |
A class that implements proxy keyring component services and calls keyring plugin APIs underneath.
Methods assume that keyring access check has been performed.
|
inlinestaticnoexcept |
Iterator deinitialization.
Note: forward_iterator should not be used after call to deinit
[in,out] | forward_iterator | metadata iterator |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Fetches data from keyring.
[in] | reader_object | reader object |
[out] | data_buffer | Out buffer for data |
[in] | data_buffer_length | Length of out buffer |
[out] | data_size | Size of fetched data |
[out] | data_type | Data type buffer |
[in] | data_type_buffer_length | Datatype buffer length |
[in] | data_type_size | Size of data type buffer |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Fetch length of the data.
[in] | reader_object | reader object |
[out] | data_size | Size of fetched data |
[out] | data_type_size | Size of data type |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Generate data and store in keyring.
[in] | data_id | Data Identifier |
[in] | auth_id | Authorization ID |
[in] | data_type | Type of data. Assumed null terminated. |
[in] | data_size | Size of the data to be generated |
true | Success - Key generated and stored in keyring. |
false | Failure |
|
inlinestaticnoexcept |
Fetch metadata for current key pointed by iterator and move the iterator forward.
[in] | forward_iterator | forward_iterator metadata iterator |
[out] | data_id | ID information of current data |
[in] | data_id_length | Length of data_id buffer |
[out] | auth_id | Owner of the key |
[in] | auth_id_length | Length of auth_id buffer |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Fetch metadata for current key pointed by iterator and move the iterator forward.
[in] | forward_iterator | forward_iterator metadata iterator |
[out] | data_id_length | ID information of current data |
[out] | auth_id_length | Owner of the key |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Forward iterator initialization.
[out] | forward_iterator | metadata iterator |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Validity of iterator.
[in] | forward_iterator | Metadata iterator handle |
|
inlinestaticnoexcept |
Keyring status.
|
inlinestaticnoexcept |
[in,out] | forward_iterator | Iterator object |
true | Success |
false | End of iterator |
|
inlinestaticnoexcept |
Deinitialize reader.
[in] | reader_object | Reader object |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Initialize reader.
[in] | data_id | Data Identifier |
[in] | auth_id | Authorization ID |
[out] | reader_object | Reader object |
true | Success |
false | Failure |
|
inlinestaticnoexcept |
Remove data from keyring.
[in] | data_id | Data Identifier |
[in] | auth_id | Authorization ID |
true | Success - Key removed successfully or key not present. |
false | Failure |
|
inlinestaticnoexcept |
Store data in keyring.
[in] | data_id | Data Identifier |
[in] | auth_id | Authorization ID |
[in] | data | Data to be stored |
[in] | data_size | Size of data to be stored |
[in] | data_type | Type of data |
true | Success |
false | Failure |