pub enum NegativeToken {
Show 13 variants
MalformedJwtSegmentCount,
BadBase64UrlSegment,
InvalidJwtHeaderShape,
MissingAlg,
AlgNone,
MissingKid,
MismatchedKid,
ExpiredClaims,
NotYetValidClaims,
BadIssuer,
BadAudience,
MalformedBearer,
NearMissApiKey,
}Expand description
Negative token shape variants for downstream parser and validator tests.
Variants§
MalformedJwtSegmentCount
Emit a JWT-like value with the wrong number of dot-separated segments.
BadBase64UrlSegment
Replace one JWT segment with scanner-safe invalid base64url text.
InvalidJwtHeaderShape
Encode a JWT header that is JSON, but not a header object.
MissingAlg
Remove alg from the JWT header.
AlgNone
Set the JWT header algorithm to none.
MissingKid
Omit kid from the JWT header while keeping key-selection context.
MismatchedKid
Emit different kid values in the header and payload.
ExpiredClaims
Set an already-expired exp claim.
NotYetValidClaims
Set a future nbf claim.
BadIssuer
Replace the expected issuer claim.
BadAudience
Replace the expected audience claim.
MalformedBearer
Emit a bearer-like token that is not valid base64url.
NearMissApiKey
Emit an API-key near miss that is close to, but not, uk_test_.
Implementations§
Source§impl NegativeToken
impl NegativeToken
Trait Implementations§
Source§impl Clone for NegativeToken
impl Clone for NegativeToken
Source§fn clone(&self) -> NegativeToken
fn clone(&self) -> NegativeToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NegativeToken
Source§impl Debug for NegativeToken
impl Debug for NegativeToken
impl Eq for NegativeToken
Source§impl PartialEq for NegativeToken
impl PartialEq for NegativeToken
Source§fn eq(&self, other: &NegativeToken) -> bool
fn eq(&self, other: &NegativeToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NegativeToken
Auto Trait Implementations§
impl Freeze for NegativeToken
impl RefUnwindSafe for NegativeToken
impl Send for NegativeToken
impl Sync for NegativeToken
impl Unpin for NegativeToken
impl UnsafeUnpin for NegativeToken
impl UnwindSafe for NegativeToken
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