[][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 Clone for AuthorityKeyIdentifier[src]

impl Eq for AuthorityKeyIdentifier[src]

impl PartialEq<AuthorityKeyIdentifier> for AuthorityKeyIdentifier[src]

impl Debug for AuthorityKeyIdentifier[src]

impl StructuralPartialEq for AuthorityKeyIdentifier[src]

impl StructuralEq for AuthorityKeyIdentifier[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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