Struct itsdangerous::SignerBuilder
source · [−]pub struct SignerBuilder<Digest, Algorithm, KeyDerivation> { /* private fields */ }
Implementations
sourceimpl<Digest, Algorithm, KeyDerivation> SignerBuilder<Digest, Algorithm, KeyDerivation> where
Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
Digest::BlockSize: ArrayLength<u8> + Clone,
Digest::OutputSize: ArrayLength<u8>,
Algorithm: SigningAlgorithm,
Algorithm::OutputSize: ArrayLength<u8>,
KeyDerivation: DeriveKey,
impl<Digest, Algorithm, KeyDerivation> SignerBuilder<Digest, Algorithm, KeyDerivation> where
Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
Digest::BlockSize: ArrayLength<u8> + Clone,
Digest::OutputSize: ArrayLength<u8>,
Algorithm: SigningAlgorithm,
Algorithm::OutputSize: ArrayLength<u8>,
KeyDerivation: DeriveKey,
sourcepub fn new<S: Into<Cow<'static, str>>>(secret_key: S) -> Self
pub fn new<S: Into<Cow<'static, str>>>(secret_key: S) -> Self
Constructs a new signer builder with a given secret key.
sourcepub fn with_salt<S: Into<Cow<'static, str>>>(self, salt: S) -> Self
pub fn with_salt<S: Into<Cow<'static, str>>>(self, salt: S) -> Self
Uses a specific salt with the signer. If no salt is defined, will
default to DEFAULT_SALT
.
sourcepub fn with_separator(self, separator: Separator) -> Self
pub fn with_separator(self, separator: Separator) -> Self
Uses a specific separator with the signer. If no separator is defined, will default to ‘.’
sourcepub fn build(
self
) -> SignerImpl<Algorithm, Digest::OutputSize, Base64SizedEncoder<Algorithm::OutputSize>>
pub fn build(
self
) -> SignerImpl<Algorithm, Digest::OutputSize, Base64SizedEncoder<Algorithm::OutputSize>>
Builds a Signer using the configuration specified in this builder.
Auto Trait Implementations
impl<Digest, Algorithm, KeyDerivation> RefUnwindSafe for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: RefUnwindSafe,
Digest: RefUnwindSafe,
KeyDerivation: RefUnwindSafe,
impl<Digest, Algorithm, KeyDerivation> Send for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: Send,
Digest: Send,
KeyDerivation: Send,
impl<Digest, Algorithm, KeyDerivation> Sync for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: Sync,
Digest: Sync,
KeyDerivation: Sync,
impl<Digest, Algorithm, KeyDerivation> Unpin for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: Unpin,
Digest: Unpin,
KeyDerivation: Unpin,
impl<Digest, Algorithm, KeyDerivation> UnwindSafe for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: UnwindSafe,
Digest: UnwindSafe,
KeyDerivation: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more