Struct tor_cert::KeyUnknownCert
source · [−]pub struct KeyUnknownCert { /* private fields */ }
Expand description
A parsed Ed25519 certificate. Maybe it includes its signing key; maybe it doesn’t.
Implementations
sourceimpl KeyUnknownCert
impl KeyUnknownCert
sourcepub fn peek_cert_type(&self) -> CertType
pub fn peek_cert_type(&self) -> CertType
Return the certificate type of the underling cert.
sourcepub fn peek_subject_key(&self) -> &CertifiedKey
pub fn peek_subject_key(&self) -> &CertifiedKey
Return subject key of the underlying cert.
sourcepub fn check_key(self, pkey: &Option<PublicKey>) -> Result<UncheckedCert>
pub fn check_key(self, pkey: &Option<PublicKey>) -> Result<UncheckedCert>
Check whether a given pkey is (or might be) a key that has correctly signed this certificate.
On success, we can check whether the certificate is well-signed; otherwise, we can’t check the certificate.
Auto Trait Implementations
impl RefUnwindSafe for KeyUnknownCert
impl Send for KeyUnknownCert
impl Sync for KeyUnknownCert
impl Unpin for KeyUnknownCert
impl UnwindSafe for KeyUnknownCert
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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