pub struct RegistrationClient {
pub(crate) client: Client,
}Expand description
Client for initializing a user account.
Fields§
§client: ClientImplementations§
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub fn seal_open_org_invite_data(
&self,
input: OpenOrgInvite,
) -> Result<SealedOpenOrgInvite, RegistrationError>
pub fn seal_open_org_invite_data( &self, input: OpenOrgInvite, ) -> Result<SealedOpenOrgInvite, RegistrationError>
Seals an OpenOrgInvite into a SealedOpenOrgInvite. The returned
sealed_data is safe to place on the verification-email link; the returned
high_entropy_secret must stay client-side.
Sourcepub fn unseal_open_org_invite_data(
&self,
sealed: SealedOpenOrgInvite,
) -> Result<OpenOrgInvite, RegistrationError>
pub fn unseal_open_org_invite_data( &self, sealed: SealedOpenOrgInvite, ) -> Result<OpenOrgInvite, RegistrationError>
Unseals a SealedOpenOrgInvite back into an OpenOrgInvite. Returns
RegistrationError::Crypto if the paired secret does not match the sealed payload or
the payload has been tampered with.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_jit_password_registration(
&self,
request: JitMasterPasswordRegistrationRequest,
) -> Result<JitMasterPasswordRegistrationResponse, RegistrationError>
pub async fn post_keys_for_jit_password_registration( &self, request: JitMasterPasswordRegistrationRequest, ) -> Result<JitMasterPasswordRegistrationResponse, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls the user to master password unlock.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_key_connector_registration(
&self,
key_connector_url: String,
sso_org_identifier: String,
) -> Result<KeyConnectorRegistrationResult, RegistrationError>
pub async fn post_keys_for_key_connector_registration( &self, key_connector_url: String, sso_org_identifier: String, ) -> Result<KeyConnectorRegistrationResult, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls the user to key connector unlock.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_tde_registration(
&self,
request: TdeRegistrationRequest,
) -> Result<TdeRegistrationResponse, RegistrationError>
pub async fn post_keys_for_tde_registration( &self, request: TdeRegistrationRequest, ) -> Result<TdeRegistrationResponse, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls in admin password reset and finally enrolls the user to TDE unlock.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_user_password_registration(
&self,
request: UserMasterPasswordRegistrationRequest,
) -> Result<UserMasterPasswordRegistrationResponse, RegistrationError>
pub async fn post_keys_for_user_password_registration( &self, request: UserMasterPasswordRegistrationRequest, ) -> Result<UserMasterPasswordRegistrationResponse, RegistrationError>
Initializes new password-based cryptographic state for a user and posts the state to the server
Trait Implementations§
Source§impl Clone for RegistrationClient
impl Clone for RegistrationClient
Source§fn clone(&self) -> RegistrationClient
fn clone(&self) -> RegistrationClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<RegistrationClient> for JsValue
impl From<RegistrationClient> for JsValue
Source§fn from(value: RegistrationClient) -> Self
fn from(value: RegistrationClient) -> Self
Source§impl FromWasmAbi for RegistrationClient
impl FromWasmAbi for RegistrationClient
Source§impl IntoWasmAbi for RegistrationClient
impl IntoWasmAbi for RegistrationClient
Source§impl RefFromWasmAbi for RegistrationClient
impl RefFromWasmAbi for RegistrationClient
Source§type Anchor = RcRef<RegistrationClient>
type Anchor = RcRef<RegistrationClient>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for RegistrationClient
impl TryFromJsValue for RegistrationClient
Source§impl VectorFromWasmAbi for RegistrationClient
impl VectorFromWasmAbi for RegistrationClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RegistrationClient]>
Source§impl VectorIntoWasmAbi for RegistrationClient
impl VectorIntoWasmAbi for RegistrationClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RegistrationClient]>) -> Self::Abi
Source§impl WasmDescribe for RegistrationClient
impl WasmDescribe for RegistrationClient
impl SupportsConstructor for RegistrationClient
impl SupportsInstanceProperty for RegistrationClient
impl SupportsStaticProperty for RegistrationClient
Auto Trait Implementations§
impl Freeze for RegistrationClient
impl !RefUnwindSafe for RegistrationClient
impl Send for RegistrationClient
impl Sync for RegistrationClient
impl Unpin for RegistrationClient
impl UnsafeUnpin for RegistrationClient
impl !UnwindSafe for RegistrationClient
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.