[−][src]Struct rpki::cert::ext::SubjectKeyIdentifier
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]
cons: &mut Constructed<S>,
critical: bool,
subject_key_id: &mut Option<Self>
) -> Result<(), S::Err>
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]
fn eq(&self, other: &SubjectKeyIdentifier) -> bool
[src]
fn ne(&self, other: &SubjectKeyIdentifier) -> bool
[src]
impl Clone for SubjectKeyIdentifier
[src]
fn clone(&self) -> 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
impl Send for SubjectKeyIdentifier
impl Sync for SubjectKeyIdentifier
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,