Struct lpc55::pki::Certificate
source · [−]pub struct Certificate { /* private fields */ }
Implementations
sourceimpl Certificate
impl Certificate
pub fn try_from(source: &CertificateSource) -> Result<Self>
sourcepub fn try_from_der(der: &[u8]) -> Result<Self>
pub fn try_from_der(der: &[u8]) -> Result<Self>
Checks certificate is valid, and public key is RSA.
pub fn certificate(&self) -> X509Certificate<'_>
pub fn der(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn public_key(&self) -> PublicKey
pub fn fingerprint(&self) -> Sha256Hash
Trait Implementations
sourceimpl Clone for Certificate
impl Clone for Certificate
sourcefn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more