pub enum JwkThumbprintInput<'a> {
Ed25519 {
x: &'a [u8; 32],
},
Es256 {
x: &'a [u8; 32],
y: &'a [u8; 32],
},
Rsa {
n: &'a str,
e: &'a str,
},
Akp {
alg: &'a str,
pub_bytes: &'a [u8],
},
}Expand description
Input for RFC 7638 JWK Thumbprint computation.
Each variant carries the required members for its key type’s canonical JSON representation (RFC 7638 §3.2: members sorted lexicographically).
Variants§
Ed25519
OKP / Ed25519: canonical {"crv":"Ed25519","kty":"OKP","x":"..."}
Es256
EC / P-256 (ES256): canonical {"crv":"P-256","kty":"EC","x":"...","y":"..."}
Rsa
RSA: canonical {"e":"...","kty":"RSA","n":"..."} (n, e already base64url)
Akp
AKP / ML-DSA-65 (draft-ietf-cose-dilithium-11): canonical
{"alg":"ML-DSA-65","kty":"AKP","pub":"<base64url>"}
Auto Trait Implementations§
impl<'a> Freeze for JwkThumbprintInput<'a>
impl<'a> RefUnwindSafe for JwkThumbprintInput<'a>
impl<'a> Send for JwkThumbprintInput<'a>
impl<'a> Sync for JwkThumbprintInput<'a>
impl<'a> Unpin for JwkThumbprintInput<'a>
impl<'a> UnsafeUnpin for JwkThumbprintInput<'a>
impl<'a> UnwindSafe for JwkThumbprintInput<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more