Struct jwt_compact_preview::alg::Hs512 [−][src]
pub struct Hs512;
HS512
signing algorithm.
See RFC 7518 for the algorithm specification.
Trait Implementations
impl Algorithm for Hs512
[src]
impl Algorithm for Hs512
[src]type SigningKey = Hs512Key
Key used when issuing new tokens.
type VerifyingKey = Hs512Key
Key used when verifying tokens. May coincide with SigningKey
for symmetric
algorithms (e.g., HS*
). Read more
type Signature = Output<Hmac<Sha512>>
Signature produced by the algorithm.
fn name(&self) -> Cow<'static, str>
[src]
fn sign(
&self,
signing_key: &Self::SigningKey,
message: &[u8]
) -> Self::Signature
[src]
&self,
signing_key: &Self::SigningKey,
message: &[u8]
) -> Self::Signature
fn verify_signature(
&self,
signature: &Self::Signature,
verifying_key: &Self::VerifyingKey,
message: &[u8]
) -> bool
[src]
&self,
signature: &Self::Signature,
verifying_key: &Self::VerifyingKey,
message: &[u8]
) -> bool
impl StructuralEq for Hs512
[src]
impl StructuralEq for Hs512
[src]impl StructuralPartialEq for Hs512
[src]
impl StructuralPartialEq for Hs512
[src]Auto Trait Implementations
impl RefUnwindSafe for Hs512
impl RefUnwindSafe for Hs512
impl UnwindSafe for Hs512
impl UnwindSafe for Hs512
Blanket Implementations
impl<A> AlgorithmExt for A where
A: Algorithm,
[src]
impl<A> AlgorithmExt for A where
A: Algorithm,
[src]pub fn token<T>(
&Self,
Header,
&Claims<T>,
&<A as Algorithm>::SigningKey
) -> Result<String, CreationError> where
T: Serialize,
[src]
&Self,
Header,
&Claims<T>,
&<A as Algorithm>::SigningKey
) -> Result<String, CreationError> where
T: Serialize,
pub fn compact_token<T>(
&Self,
Header,
&Claims<T>,
&<A as Algorithm>::SigningKey
) -> Result<String, CreationError> where
T: Serialize,
[src]
&Self,
Header,
&Claims<T>,
&<A as Algorithm>::SigningKey
) -> Result<String, CreationError> where
T: Serialize,
pub fn validate_integrity<T>(
&Self,
&UntrustedToken<'_>,
&<A as Algorithm>::VerifyingKey
) -> Result<Token<T>, ValidationError> where
T: DeserializeOwned,
[src]
&Self,
&UntrustedToken<'_>,
&<A as Algorithm>::VerifyingKey
) -> Result<Token<T>, ValidationError> where
T: DeserializeOwned,
pub fn validate_for_signed_token<T>(
&Self,
&UntrustedToken<'_>,
&<A as Algorithm>::VerifyingKey
) -> Result<SignedToken<A, T>, ValidationError> where
T: DeserializeOwned,
[src]
&Self,
&UntrustedToken<'_>,
&<A as Algorithm>::VerifyingKey
) -> Result<SignedToken<A, T>, ValidationError> where
T: DeserializeOwned,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,