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§
source§impl Clone for NoneVerifier
impl Clone for NoneVerifier
source§fn clone(&self) -> NoneVerifier
fn clone(&self) -> NoneVerifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NoneVerifier
impl Debug for NoneVerifier
source§impl Verifier for NoneVerifier
impl Verifier for NoneVerifier
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more