[−][src]Struct itsdangerous::signer::SignerBuilder
Methods
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,
[src]
Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
Digest::BlockSize: ArrayLength<u8> + Clone,
Digest::OutputSize: ArrayLength<u8>,
Algorithm: SigningAlgorithm,
Algorithm::OutputSize: ArrayLength<u8>,
KeyDerivation: DeriveKey,
pub fn new<S: Into<Cow<'static, str>>>(secret_key: S) -> Self
[src]
Constructs a new signer builder with a given secret key.
pub fn with_salt<S: Into<Cow<'static, str>>>(self, salt: S) -> Self
[src]
Uses a specific salt with the signer. If no salt is defined, will
default to DEFAULT_SALT
.
pub fn with_seperator(self, seperator: Seperator) -> Self
[src]
Uses a specific seperator with the signer. If no seperator is defined, will default to '.'
pub fn build(
self
) -> Signer<Algorithm, Digest::OutputSize, Base64SizedEncoder<Algorithm::OutputSize>>
[src]
self
) -> Signer<Algorithm, Digest::OutputSize, Base64SizedEncoder<Algorithm::OutputSize>>
Builds a Signer using the configuration specified in this builder.
Auto Trait Implementations
impl<Digest, Algorithm, KeyDerivation> Send for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: Send,
Digest: Send,
KeyDerivation: Send,
Algorithm: Send,
Digest: Send,
KeyDerivation: Send,
impl<Digest, Algorithm, KeyDerivation> Sync for SignerBuilder<Digest, Algorithm, KeyDerivation> where
Algorithm: Sync,
Digest: Sync,
KeyDerivation: Sync,
Algorithm: Sync,
Digest: Sync,
KeyDerivation: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self