pub struct OAuthPrivateKeyJwtOptions {
pub private_key_jwk: Option<Value>,
pub private_key_pem: Option<String>,
pub algorithm: Option<String>,
pub kid: Option<String>,
pub expires_in: Option<f64>,
}Expand description
Key material stays private; Debug deliberately never renders it.
JWK takes precedence over PKCS#8 PEM. Algorithm defaults to JWK alg, then
RS256; explicit algorithm and JWK alg must agree. kid overrides JWK kid.
Fields§
§private_key_jwk: Option<Value>§private_key_pem: Option<String>§algorithm: Option<String>§kid: Option<String>§expires_in: Option<f64>Seconds, default 120. Negative lifetimes produce expired assertions.
Implementations§
Source§impl OAuthPrivateKeyJwtOptions
impl OAuthPrivateKeyJwtOptions
Sourcepub fn into_assertion(self) -> Result<OAuthClientAssertion, String>
pub fn into_assertion(self) -> Result<OAuthClientAssertion, String>
Validate configuration eagerly; key import/signing occurs for each grant, matching the published getter’s construction versus request boundaries.
§Errors
Rejects missing key material, unsupported algorithms, and algorithm conflicts.
Trait Implementations§
Source§impl Clone for OAuthPrivateKeyJwtOptions
impl Clone for OAuthPrivateKeyJwtOptions
Source§impl Debug for OAuthPrivateKeyJwtOptions
impl Debug for OAuthPrivateKeyJwtOptions
Source§impl Default for OAuthPrivateKeyJwtOptions
impl Default for OAuthPrivateKeyJwtOptions
Auto Trait Implementations§
impl Freeze for OAuthPrivateKeyJwtOptions
impl RefUnwindSafe for OAuthPrivateKeyJwtOptions
impl Send for OAuthPrivateKeyJwtOptions
impl Sync for OAuthPrivateKeyJwtOptions
impl Unpin for OAuthPrivateKeyJwtOptions
impl UnsafeUnpin for OAuthPrivateKeyJwtOptions
impl UnwindSafe for OAuthPrivateKeyJwtOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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