pub struct RsaSigningKey { /* private fields */ }Implementations§
Source§impl RsaSigningKey
impl RsaSigningKey
pub fn generate() -> Result<Self, KeyError>
pub fn generate_bits(bits: usize) -> Result<Self, KeyError>
pub fn from_pkcs8_pem(pem: &str) -> Result<Self, KeyError>
pub fn load_from_pem_file(path: &Path) -> Result<Self, KeyError>
pub fn to_pkcs8_pem(&self) -> Result<String, KeyError>
pub fn write_pem_file(&self, path: &Path) -> Result<(), KeyError>
pub const fn public_key(&self) -> &RsaPublicKey
pub const fn private_key(&self) -> &RsaPrivateKey
pub fn kid(&self) -> &str
pub fn jwk(&self) -> Jwk
pub fn jwks(&self) -> Jwks
Trait Implementations§
Source§impl Clone for RsaSigningKey
impl Clone for RsaSigningKey
Auto Trait Implementations§
impl Freeze for RsaSigningKey
impl RefUnwindSafe for RsaSigningKey
impl Send for RsaSigningKey
impl Sync for RsaSigningKey
impl Unpin for RsaSigningKey
impl UnsafeUnpin for RsaSigningKey
impl UnwindSafe for RsaSigningKey
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<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<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