pub struct SignedData { /* private fields */ }Expand description
CMS SignedData JSON model — wraps confium_pki::cms::SignedData.
Construct via SignedData::from_json (the canonical wire format) and
inspect signer / certificate / content fields. Verification of the
signatures themselves happens at a higher layer (the verifier is
caller-supplied because each signer algorithm needs its own callback).
Implementations§
Source§impl SignedData
impl SignedData
Sourcepub fn from_json(json: &str) -> Result<SignedData, JsValue>
pub fn from_json(json: &str) -> Result<SignedData, JsValue>
Parse SignedData from its canonical JSON form.
Sourcepub fn signer_count(&self) -> usize
pub fn signer_count(&self) -> usize
Number of signer infos.
Sourcepub fn content_type(&self) -> String
pub fn content_type(&self) -> String
Content type OID.
Sourcepub fn certificate_count(&self) -> usize
pub fn certificate_count(&self) -> usize
Number of attached X.509 certificates.
Trait Implementations§
Source§impl From<SignedData> for JsValue
impl From<SignedData> for JsValue
Source§fn from(value: SignedData) -> Self
fn from(value: SignedData) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SignedData
impl FromWasmAbi for SignedData
Source§impl IntoWasmAbi for SignedData
impl IntoWasmAbi for SignedData
Source§impl LongRefFromWasmAbi for SignedData
impl LongRefFromWasmAbi for SignedData
Source§type Abi = WasmPtr<WasmRefCell<SignedData>>
type Abi = WasmPtr<WasmRefCell<SignedData>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SignedData>
type Anchor = RcRef<SignedData>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for SignedData
impl OptionFromWasmAbi for SignedData
Source§impl OptionIntoWasmAbi for SignedData
impl OptionIntoWasmAbi for SignedData
Source§impl RefFromWasmAbi for SignedData
impl RefFromWasmAbi for SignedData
Source§type Abi = WasmPtr<WasmRefCell<SignedData>>
type Abi = WasmPtr<WasmRefCell<SignedData>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SignedData>
type Anchor = RcRef<SignedData>
The type that holds the reference to
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 RefMutFromWasmAbi for SignedData
impl RefMutFromWasmAbi for SignedData
Source§type Abi = WasmPtr<WasmRefCell<SignedData>>
type Abi = WasmPtr<WasmRefCell<SignedData>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SignedData>
type Anchor = RcRefMut<SignedData>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for SignedData
impl SupportsInstanceProperty for SignedData
impl SupportsStaticProperty for SignedData
Source§impl TryFromJsValue for SignedData
impl TryFromJsValue for SignedData
Source§impl VectorFromWasmAbi for SignedData
impl VectorFromWasmAbi for SignedData
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SignedData]>
Source§impl VectorIntoWasmAbi for SignedData
impl VectorIntoWasmAbi for SignedData
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SignedData]>) -> Self::Abi
Source§impl WasmDescribeVector for SignedData
impl WasmDescribeVector for SignedData
Auto Trait Implementations§
impl Freeze for SignedData
impl RefUnwindSafe for SignedData
impl Send for SignedData
impl Sync for SignedData
impl Unpin for SignedData
impl UnsafeUnpin for SignedData
impl UnwindSafe for SignedData
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> 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
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.