pub enum RecipientId {
IssuerAndSerial(IssuerAndSerial),
SubjectKeyIdentifier(Vec<u8>),
}Expand description
CMS RecipientIdentifier (RFC 5652 §6.2.1) — the CHOICE that picks
between IssuerAndSerialNumber (CMS v0) and SubjectKeyIdentifier
(CMS v2). The SKI form carries the bare 20-byte SHA-1 of the
recipient cert’s SubjectPublicKeyInfo BIT STRING contents — see
RFC 5280 §4.2.1.2 method 1.
Variants§
IssuerAndSerial(IssuerAndSerial)
IssuerAndSerialNumber (CMS v0). The matcher compares this to
the user cert’s (issuer_der, serial) pair byte-for-byte.
SubjectKeyIdentifier(Vec<u8>)
[0] SubjectKeyIdentifier (CMS v2). The matcher compares the
raw octet-string body to the SHA-1 of the user cert’s
SubjectPublicKeyInfo BIT STRING contents.
Trait Implementations§
Source§impl Clone for RecipientId
impl Clone for RecipientId
Source§fn clone(&self) -> RecipientId
fn clone(&self) -> RecipientId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecipientId
impl RefUnwindSafe for RecipientId
impl Send for RecipientId
impl Sync for RecipientId
impl Unpin for RecipientId
impl UnsafeUnpin for RecipientId
impl UnwindSafe for RecipientId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more