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§
source§impl 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<&Ed25519Identity>
) -> Result<UncheckedCert, CertError>
pub fn check_key( self, pkey: Option<&Ed25519Identity> ) -> Result<UncheckedCert, CertError>
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.
Trait Implementations§
source§impl Clone for KeyUnknownCert
impl Clone for KeyUnknownCert
source§fn clone(&self) -> KeyUnknownCert
fn clone(&self) -> KeyUnknownCert
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 more