pub struct SigningCredential { /* private fields */ }Expand description
An application-owned signing credential.
Implementations§
Source§impl SigningCredential
impl SigningCredential
Sourcepub fn from_pkcs8_pem(
pem: &str,
info: impl Into<String>,
not_before: i64,
not_after: i64,
) -> Result<Self, AuthenticationError>
pub fn from_pkcs8_pem( pem: &str, info: impl Into<String>, not_before: i64, not_after: i64, ) -> Result<Self, AuthenticationError>
Build an ES256 credential from an unencrypted PKCS #8 PEM key.
Sourcepub fn verifying_key(&self) -> Es256VerifyingKey
pub fn verifying_key(&self) -> Es256VerifyingKey
The corresponding public verification key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigningCredential
impl RefUnwindSafe for SigningCredential
impl Send for SigningCredential
impl Sync for SigningCredential
impl Unpin for SigningCredential
impl UnsafeUnpin for SigningCredential
impl UnwindSafe for SigningCredential
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