Skip to main content

ManualSigningAssetsInput

Struct ManualSigningAssetsInput 

Source
pub struct ManualSigningAssetsInput { /* private fields */ }
Expand description

Secret, bounded inputs for one manual-signing identity and profile.

This type deliberately implements neither Clone, Debug, serialization, nor field accessors. All three byte buffers are overwritten by SecretBytes when cleared or dropped.

Implementations§

Source§

impl ManualSigningAssetsInput

Source

pub fn new( certificate_pkcs12: SecretBytes, certificate_password: SecretBytes, provisioning_profile: SecretBytes, ) -> Result<Self, ManualSigningAssetError>

Validate input bounds and take ownership of all secret buffers.

Empty PKCS#12 passwords are supported.

§Errors

Returns a field-only error for empty, oversized, non-UTF-8, or NUL-containing input. No input content is retained in the error.

Source

pub fn into_parts(self) -> (SecretBytes, SecretBytes, SecretBytes)

Consume the input into the exact secret buffers supplied by the caller.

This is intended for forwarding already-validated assets to a remote worker without rereading or duplicating them. Each returned buffer remains protected by SecretBytes and is overwritten when dropped.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.