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

pub struct SubjectKeyIdentifier { /* fields omitted */ }

Methods

impl SubjectKeyIdentifier[src]

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

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

impl SubjectKeyIdentifier[src]

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

Parses the Subject Key Identifier Extension.

The extension must be present and contain the 160 bit SHA-1 hash of the value of the DER-encoded bit string of the subject public key.

SubjectKeyIdentifier ::= KeyIdentifier
KeyIdentifier        ::= OCTET STRING

Conforming CAs MUST mark this extension as non-critical.

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

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

Trait Implementations

impl PartialEq<SubjectKeyIdentifier> for SubjectKeyIdentifier[src]

impl Clone for SubjectKeyIdentifier[src]

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

Performs copy-assignment from source. Read more

impl Eq for SubjectKeyIdentifier[src]

impl Debug for SubjectKeyIdentifier[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.