Struct jws::none::NoneVerifier
source · [−]pub struct NoneVerifier;
Expand description
Message verifier for the none
algorithm.
The none
algorithm has an empty signature and does not provide integrity protection.
The verifier does check that the signature is indeed empty as required by RFC 7518 (section 3.6).
Trait Implementations
sourceimpl Clone for NoneVerifier
impl Clone for NoneVerifier
sourcefn clone(&self) -> NoneVerifier
fn clone(&self) -> NoneVerifier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NoneVerifier
impl Debug for NoneVerifier
sourceimpl Verifier for NoneVerifier
impl Verifier for NoneVerifier
sourcefn verify(
&self,
protected_header: Option<&JsonObject>,
unprotected_header: Option<&JsonObject>,
_encoded_header: &[u8],
_encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
fn verify(
&self,
protected_header: Option<&JsonObject>,
unprotected_header: Option<&JsonObject>,
_encoded_header: &[u8],
_encoded_payload: &[u8],
signature: &[u8]
) -> Result<()>
Verify the signature of a JWS message. Read more
impl Copy for NoneVerifier
Auto Trait Implementations
impl RefUnwindSafe for NoneVerifier
impl Send for NoneVerifier
impl Sync for NoneVerifier
impl Unpin for NoneVerifier
impl UnwindSafe for NoneVerifier
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more