Skip to main content

CompleteArgsBuilder

Struct CompleteArgsBuilder 

Source
pub struct CompleteArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> CompleteArgsBuilder<S>

Source

pub fn build(self) -> CompleteArgs
where S: IsComplete,

Finish building and return the requested object

Source

pub fn nonce(self, value: String) -> CompleteArgsBuilder<SetNonce<S>>
where S::Nonce: IsUnset,

Required.

Base64-standard-encoded challenge nonce returned when enrollment was started.

Source

pub fn server_id(self, value: Uuid) -> CompleteArgsBuilder<SetServerId<S>>
where S::ServerId: IsUnset,

Required.

ID of the machine being enrolled. Must match the value used when starting enrollment.

Source

pub fn signature(self, value: String) -> CompleteArgsBuilder<SetSignature<S>>
where S::Signature: IsUnset,

Required.

Base64-standard-encoded ASN.1 DER ECDSA (P-256, SHA-256) signature over the challenge transcript, proving possession of the device’s private key. The transcript is the byte concatenation of: the raw challenge nonce, the raw 16 bytes of the machine ID, the DER SPKI of the device public key, and — only when channel binding was flagged as required — the connection’s TLS exported keying material.

Source

pub fn spki(self, value: String) -> CompleteArgsBuilder<SetSpki<S>>
where S::Spki: IsUnset,

Optional (Some / Option setters). Base64-standard-encoded DER SPKI of the device’s public key. Only required when enrolling over a transport with no client certificate to read the key from; must match the key used when enrollment was started.

Source

pub fn maybe_spki( self, value: Option<String>, ) -> CompleteArgsBuilder<SetSpki<S>>
where S::Spki: IsUnset,

Optional (Some / Option setters). Base64-standard-encoded DER SPKI of the device’s public key. Only required when enrolling over a transport with no client certificate to read the key from; must match the key used when enrollment was started.

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, 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.