WireIdentityReader

Trait WireIdentityReader 

Source
pub trait WireIdentityReader {
    // Required methods
    fn extract_identity(
        &self,
        env: Option<&PkiEnvironment>,
        hash_alg: HashAlgorithm,
    ) -> RustyAcmeResult<WireIdentity>;
    fn extract_created_at(&self) -> RustyAcmeResult<u64>;
    fn extract_public_key(&self) -> RustyAcmeResult<Vec<u8>>;
}

Required Methods§

Source

fn extract_identity( &self, env: Option<&PkiEnvironment>, hash_alg: HashAlgorithm, ) -> RustyAcmeResult<WireIdentity>

Verifies a proof of identity, may it be a x509 certificate (or a Verifiable Presentation (later)). We do not verify anything else e.g. expiry, it is left to MLS implementation

Source

fn extract_created_at(&self) -> RustyAcmeResult<u64>

returns the ‘Not Before’ claim which usually matches the creation timestamp

Source

fn extract_public_key(&self) -> RustyAcmeResult<Vec<u8>>

returns the ‘Subject Public Key Info’ claim

Implementations on Foreign Types§

Source§

impl WireIdentityReader for &[u8]

Source§

impl WireIdentityReader for Vec<u8>

Source§

impl WireIdentityReader for Certificate

Implementors§