Struct acmer::AcmePrivateKey
source · pub struct AcmePrivateKey(_);Implementations§
source§impl PrivateKey
impl PrivateKey
pub fn random_rsa_key(rng: impl Rng + CryptoRng) -> PrivateKey
pub fn random_ec_key(rng: impl Rng + CryptoRng) -> PrivateKey
pub fn from_pem(pem: &str) -> Result<PrivateKey, KeyError>
pub fn from_der(der: &[u8]) -> Result<PrivateKey, KeyError>
pub fn to_pem(&self) -> Result<String, KeyError>
pub fn to_der(&self) -> Result<Vec<u8, Global>, KeyError>
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PrivateKey
impl Debug for PrivateKey
source§impl From<RsaPrivateKey> for PrivateKey
impl From<RsaPrivateKey> for PrivateKey
source§fn from(key: RsaPrivateKey) -> PrivateKey
fn from(key: RsaPrivateKey) -> PrivateKey
Converts to this type from the input type.
source§impl From<SecretKey<NistP256>> for PrivateKey
impl From<SecretKey<NistP256>> for PrivateKey
source§fn from(key: SecretKey<NistP256>) -> PrivateKey
fn from(key: SecretKey<NistP256>) -> PrivateKey
Converts to this type from the input type.
source§impl FromStr for PrivateKey
impl FromStr for PrivateKey
source§impl PartialEq<PrivateKey> for PrivateKey
impl PartialEq<PrivateKey> for PrivateKey
source§fn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PrivateKey
impl StructuralEq for PrivateKey
impl StructuralPartialEq for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.