pub enum JwtParseRejection {
Show 17 variants
EncryptedTokenUnsupported,
InvalidSegmentCount,
EmptySegment,
InvalidBase64Url,
DecodedSegmentTooLarge,
MalformedJson,
DuplicateJsonKey,
JsonLimitExceeded,
MalformedProtectedHeader,
UnsecuredAlgorithmUnsupported,
AlgorithmUnsupported,
CriticalHeaderUnsupported,
UnencodedPayloadUnsupported,
CompressionUnsupported,
NestedTokenUnsupported,
KeyMetadataUnsupported,
InvalidSignatureLength,
}Expand description
Static reason a compact input was not parsed into the supported profile.
Variants§
EncryptedTokenUnsupported
A five-segment JWE compact object is outside this JWS-only profile.
InvalidSegmentCount
The compact input did not contain exactly three segments.
EmptySegment
One required compact segment was empty.
InvalidBase64Url
Compact segments must use unpadded base64url only.
DecodedSegmentTooLarge
A decoded header or claims object exceeded its byte ceiling.
MalformedJson
Protected header or claims JSON was malformed or not an object.
DuplicateJsonKey
Any duplicate JSON object key is rejected, including in nested values.
JsonLimitExceeded
JSON depth, nodes, members, arrays, or strings exceeded a bound.
MalformedProtectedHeader
The protected header omitted or mistyped a required parameter.
UnsecuredAlgorithmUnsupported
alg=none is never accepted by this policy.
AlgorithmUnsupported
Only exact ES256 is supported by V1.
CriticalHeaderUnsupported
The closed V1 profile does not process any crit member.
UnencodedPayloadUnsupported
The closed V1 profile does not process a b64 extension member.
CompressionUnsupported
Compressed JOSE content is outside this profile.
NestedTokenUnsupported
Nested JWT/JWS content is outside this profile.
KeyMetadataUnsupported
Token-carried remote or embedded key selection is prohibited.
InvalidSignatureLength
The ES256 signature was not exactly 64 decoded bytes.
Trait Implementations§
Source§impl Clone for JwtParseRejection
impl Clone for JwtParseRejection
Source§fn clone(&self) -> JwtParseRejection
fn clone(&self) -> JwtParseRejection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for JwtParseRejection
Source§impl Debug for JwtParseRejection
impl Debug for JwtParseRejection
Source§impl<'de> Deserialize<'de> for JwtParseRejection
impl<'de> Deserialize<'de> for JwtParseRejection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for JwtParseRejection
Source§impl PartialEq for JwtParseRejection
impl PartialEq for JwtParseRejection
Source§impl Serialize for JwtParseRejection
impl Serialize for JwtParseRejection
impl StructuralPartialEq for JwtParseRejection
Auto Trait Implementations§
impl Freeze for JwtParseRejection
impl RefUnwindSafe for JwtParseRejection
impl Send for JwtParseRejection
impl Sync for JwtParseRejection
impl Unpin for JwtParseRejection
impl UnsafeUnpin for JwtParseRejection
impl UnwindSafe for JwtParseRejection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.