[][src]Struct rpki::cert::ext::AuthorityKeyIdentifier

pub struct AuthorityKeyIdentifier { /* fields omitted */ }

Methods

impl AuthorityKeyIdentifier[src]

pub fn new(key_info: &PublicKey) -> Self[src]

pub fn authority_key_id(&self) -> &OctetString[src]

impl AuthorityKeyIdentifier[src]

pub fn take<S: Source>(
    cons: &mut Constructed<S>,
    critical: bool,
    authority_key_id: &mut Option<Self>
) -> Result<(), S::Err>
[src]

Parses the Authority Key Identifier Extension.

Must be present except in self-signed CA certificates where it is optional.

AuthorityKeyIdentifier ::= SEQUENCE {
  keyIdentifier             [0] KeyIdentifier           OPTIONAL,
  authorityCertIssuer       [1] GeneralNames            OPTIONAL,
  authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL  }

KeyIdentifier ::= OCTET STRING

Only keyIdentifier MUST be present.

pub fn encode(self) -> impl Values[src]

pub fn encode_ref<'a>(&'a self) -> impl Values + 'a[src]

Trait Implementations

impl PartialEq<AuthorityKeyIdentifier> for AuthorityKeyIdentifier[src]

impl Clone for AuthorityKeyIdentifier[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for AuthorityKeyIdentifier[src]

impl Debug for AuthorityKeyIdentifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.