pub struct CryptoCipherSuiteClient {
pub(crate) key_store: KeyStore<KeySlotIds>,
}Expand description
Tells you which cryptographic algorithms to use for the current account and environment.
Some environments are restricted in which algorithms they may use — for example, government (FedRAMP) deployments must use FIPS-approved algorithms. Ask this client which algorithm to use instead of picking one yourself, so the choice stays correct as those rules change.
Fields§
§key_store: KeyStore<KeySlotIds>Implementations§
Source§impl CryptoCipherSuiteClient
impl CryptoCipherSuiteClient
Sourcepub fn default_kdf_for_new_account(&self) -> Kdf
pub fn default_kdf_for_new_account(&self) -> Kdf
Returns the KDF a new account should use in the current environment.
In a FIPS (gov) environment the FIPS-approved PBKDF2 is used; otherwise the modern Argon2id default.
Sourcepub fn is_kdf_compliant(&self, kdf: Kdf) -> bool
pub fn is_kdf_compliant(&self, kdf: Kdf) -> bool
Returns whether the given KDF is allowed in the current environment.
Intended for surfaces that let a user pick a KDF (e.g. the Change KDF settings screen): the caller can validate or filter the options it offers. In a FIPS (gov) environment only PBKDF2 is allowed; otherwise every supported KDF is allowed.
Trait Implementations§
Source§impl From<CryptoCipherSuiteClient> for JsValue
impl From<CryptoCipherSuiteClient> for JsValue
Source§fn from(value: CryptoCipherSuiteClient) -> Self
fn from(value: CryptoCipherSuiteClient) -> Self
Source§impl FromClient for CryptoCipherSuiteClient
impl FromClient for CryptoCipherSuiteClient
Source§fn from_client(client: &Client) -> Self
fn from_client(client: &Client) -> Self
Client] reference.Source§impl RefFromWasmAbi for CryptoCipherSuiteClient
impl RefFromWasmAbi for CryptoCipherSuiteClient
Source§type Anchor = RcRef<CryptoCipherSuiteClient>
type Anchor = RcRef<CryptoCipherSuiteClient>
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 VectorFromWasmAbi for CryptoCipherSuiteClient
impl VectorFromWasmAbi for CryptoCipherSuiteClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CryptoCipherSuiteClient]>
Source§impl VectorIntoWasmAbi for CryptoCipherSuiteClient
impl VectorIntoWasmAbi for CryptoCipherSuiteClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CryptoCipherSuiteClient]>) -> Self::Abi
impl SupportsConstructor for CryptoCipherSuiteClient
impl SupportsInstanceProperty for CryptoCipherSuiteClient
impl SupportsStaticProperty for CryptoCipherSuiteClient
Auto Trait Implementations§
impl Freeze for CryptoCipherSuiteClient
impl RefUnwindSafe for CryptoCipherSuiteClient
impl Send for CryptoCipherSuiteClient
impl Sync for CryptoCipherSuiteClient
impl Unpin for CryptoCipherSuiteClient
impl UnsafeUnpin for CryptoCipherSuiteClient
impl UnwindSafe for CryptoCipherSuiteClient
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
§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.