Struct jwt_compact_preview::alg::Rs384 [−][src]
pub struct Rs384;
RSA-PKCS1v1.5 with SHA-384 as a hash function
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rs384
impl RefUnwindSafe for Rs384
impl UnwindSafe for Rs384
impl UnwindSafe for Rs384
Blanket Implementations
impl<T> Algorithm for T where
T: RsaVariant,
[src]
impl<T> Algorithm for T where
T: RsaVariant,
[src]type SigningKey = RsaSigningKey
Key used when issuing new tokens.
type VerifyingKey = RsaVerifyingKey
Key used when verifying tokens. May coincide with SigningKey
for symmetric
algorithms (e.g., HS*
). Read more
type Signature = Signature
Signature produced by the algorithm.
pub fn name(&Self) -> Cow<'static, str>
[src]
pub fn sign(
&Self,
&<T as Algorithm>::SigningKey,
&[u8]
) -> <T as Algorithm>::Signature
[src]
&Self,
&<T as Algorithm>::SigningKey,
&[u8]
) -> <T as Algorithm>::Signature
pub fn verify_signature(
&Self,
&<T as Algorithm>::Signature,
&<T as Algorithm>::VerifyingKey,
&[u8]
) -> bool
[src]
&Self,
&<T as Algorithm>::Signature,
&<T as Algorithm>::VerifyingKey,
&[u8]
) -> bool
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>,