pub struct CreateApiUser {
pub role: ApiUserRole,
pub name: String,
pub csr_pem: String,
pub co_signer_setup_type: Option<CoSignerSetupType>,
pub co_signer_setup_is_first_user: Option<bool>,
}
Fields§
§role: ApiUserRole
§name: String
User Name
csr_pem: String
API requests are authenticated by providing in each request: a. API Key in the X-API-Key
header b. Auth header - Authorization: Bearer <JWT>
while the JWT is signed with an RSA 4096 private key. When creating a new API Key, you need to generate an RSA 4096 private key and a CSR file. The CSR file is uploaded to Fireblocks upon the user creation and used later on for signature validation (Auth JWT signature validation). For more info read the following article
co_signer_setup_type: Option<CoSignerSetupType>
Required for Signer/Admin API users that planned to be paired with an API Co-Signer Machine. - SGX_MACHINE: For SGX enabled servers - FIREBLOCKS_CCMT: Fireblocks Communal Co-Signer (for Testnet workspaces only) - NITRO_MACHINE: For AWS Nitro Enclave enabled servers For more information about Fireblocks Co-Signer setup please read the following article.
co_signer_setup_is_first_user: Option<bool>
Pass as `true`` if this is the first user on the your Co-Signer machine
Implementations§
Source§impl CreateApiUser
impl CreateApiUser
pub fn new(role: ApiUserRole, name: String, csr_pem: String) -> CreateApiUser
Trait Implementations§
Source§impl Clone for CreateApiUser
impl Clone for CreateApiUser
Source§fn clone(&self) -> CreateApiUser
fn clone(&self) -> CreateApiUser
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more