pub struct StartInitializationRequestBuilder { /* private fields */ }
Expand description
Builder for StartInitializationRequest
.
Implementations§
source§impl StartInitializationRequestBuilder
impl StartInitializationRequestBuilder
sourcepub fn pgp_keys<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn pgp_keys<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Specifies an array of PGP public keys used to encrypt the output unseal keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as secret_shares.
sourcepub fn root_token_pgp_key<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn root_token_pgp_key<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Specifies a PGP public key used to encrypt the initial root token. The key must be base64-encoded from its original binary representation.
Specifies the number of shares to split the root key into.
sourcepub fn secret_threshold<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn secret_threshold<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Specifies the number of shares required to reconstruct the root key. This must be less than or equal secret_shares.
Additionally, the following options are only supported using Auto Unseal: Specifies the number of shares that should be encrypted by the HSM and stored for auto-unsealing. Currently must be the same as secret_shares.
Specifies the number of shares to split the recovery key into. This is only available when using Auto Unseal.
sourcepub fn recovery_threshold<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn recovery_threshold<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
Specifies the number of shares required to reconstruct the recovery key. This must be less than or equal to recovery_shares. This is only available when using Auto Unseal.
sourcepub fn recovery_pgp_keys<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn recovery_pgp_keys<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Specifies an array of PGP public keys used to encrypt the output recovery keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as recovery_shares. This is only available when using Auto Unseal.
sourcepub fn build(
&self,
) -> Result<StartInitializationRequest, StartInitializationRequestBuilderError>
pub fn build( &self, ) -> Result<StartInitializationRequest, StartInitializationRequestBuilderError>
Trait Implementations§
source§impl Clone for StartInitializationRequestBuilder
impl Clone for StartInitializationRequestBuilder
source§fn clone(&self) -> StartInitializationRequestBuilder
fn clone(&self) -> StartInitializationRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for StartInitializationRequestBuilder
impl RefUnwindSafe for StartInitializationRequestBuilder
impl Send for StartInitializationRequestBuilder
impl Sync for StartInitializationRequestBuilder
impl Unpin for StartInitializationRequestBuilder
impl UnwindSafe for StartInitializationRequestBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)