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
Source§fn clone(&self) -> RsaSigningKey
fn clone(&self) -> RsaSigningKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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