pub struct SignerBuilder<'a> { /* private fields */ }
Expand description

Builder type to construct an entity that will sign some data.

Instances will be attached to SignedDataBuilder instances where they will sign data using configured settings.

Implementations

Construct a new entity that will sign content.

An entity is constructed from a signing key, which is mandatory.

Obtain the signature algorithm used by the signing key.

Define the content to use to calculate the message-id attribute.

In most cases, this is never called and the encapsulated content embedded within the generated message is used. However, some users omit storing the data inline and instead use a message-id digest calculated from a different source. This defines that different source.

Define the content type of the signed content.

Add an additional attribute to sign.

Add an additional OctetString signed attribute.

This is a helper for converting a byte slice to an OctetString and AttributeValue without having to go through low-level ASN.1 code.

Obtain a time-stamp token from a server.

If this is called, the URL must be a server implementing the Time-Stamp Protocol (TSP) as defined by RFC 3161. At signature generation time, the server will be contacted and the time stamp token response will be added as an unsigned attribute on the SignedData instance.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more