This class is used to perform registration step on client side.
More...
#include <registration.h>
This class is used to perform registration step on client side.
◆ registration()
registration::registration |
( |
| ) |
|
Construcutor to allocate memory for performing attestation (registration)
◆ ~registration()
registration::~registration |
( |
| ) |
|
|
virtual |
◆ discover_fido2_devices()
fido_dev_info_t * registration::discover_fido2_devices |
( |
size_t |
num_devices | ) |
|
|
protected |
Discover available devices.
- Parameters
-
[in] | num_devices | Number of devices to open |
- Returns
- handle to fido_dev_info_t array on success. null otherwise.
◆ generate_signature()
virtual bool client_registration::registration::generate_signature |
( |
| ) |
|
|
pure virtual |
◆ get_attestation_statement_length()
size_t registration::get_attestation_statement_length |
( |
| ) |
|
Gets the length of the full attestation statement blob.
◆ get_attestation_statement_ptr()
const unsigned char * registration::get_attestation_statement_ptr |
( |
| ) |
|
Gets the full attestation statement blob.
◆ get_authdata_len()
size_t registration::get_authdata_len |
( |
| ) |
|
Method to get length of authenticator data.
- Return values
-
length | of authenticator data. |
◆ get_authdata_ptr()
const unsigned char * registration::get_authdata_ptr |
( |
| ) |
|
Method to get authenticator data.
- Return values
-
buffer | holding authenticator data |
◆ get_fmt()
const char * registration::get_fmt |
( |
| ) |
|
◆ get_rp_id()
const char * registration::get_rp_id |
( |
| ) |
|
Method to get rp id.
- Return values
-
◆ get_sig_len()
size_t registration::get_sig_len |
( |
| ) |
|
Method to get length of signature.
- Return values
-
◆ get_sig_ptr()
const unsigned char * registration::get_sig_ptr |
( |
| ) |
|
Method to get signature data.
- Return values
-
buffer | holding signature data |
◆ get_x5c_len()
size_t registration::get_x5c_len |
( |
| ) |
|
Method to get length of x509 certificate.
- Return values
-
length | of x509 certificate |
◆ get_x5c_ptr()
const unsigned char * registration::get_x5c_ptr |
( |
| ) |
|
Method to get x509 certificate.
- Return values
-
buffer | holding x509 certificate |
◆ is_fido2()
bool registration::is_fido2 |
( |
| ) |
|
Method to check if token device supports CTAP2.1 resident keys feature.
- Return values
-
false | authenticator does not support resident keys |
true | authenticator supports resident keys |
◆ make_challenge_response()
virtual bool client_registration::registration::make_challenge_response |
( |
unsigned char *& |
buf | ) |
|
|
pure virtual |
◆ make_credentials()
bool registration::make_credentials |
( |
const char * |
challenge | ) |
|
This method fills in all information required to initiate registration process.
This method parses server challenge and generates challenge response.
- Parameters
-
[in] | challenge | buffer holding the server challenge |
- Return values
-
false | successfull generation of credentials. |
true | error occurred. |
◆ parse_challenge()
virtual bool client_registration::registration::parse_challenge |
( |
const char * |
challenge | ) |
|
|
pure virtual |
◆ set_client_data()
virtual void client_registration::registration::set_client_data |
( |
const unsigned char * |
, |
|
|
const char * |
|
|
) |
| |
|
pure virtual |
◆ set_rp_id()
void registration::set_rp_id |
( |
std::string |
rp_id | ) |
|
Method to set the relying party name or id.
- Parameters
-
[in] | rp_id | buffer holding relying party name |
◆ set_user()
void registration::set_user |
( |
std::string |
user | ) |
|
Set method to set user name.
- Parameters
-
[in] | user | buffer holding user name |
◆ m_cred
fido_cred_t* client_registration::registration::m_cred |
|
protected |
◆ m_is_fido2
bool client_registration::registration::m_is_fido2 {false} |
|
protected |
The documentation for this class was generated from the following files: