pub struct PrivateKeyChain { /* private fields */ }Expand description
PrivateKeyChain represents a private key and a certificate chain
Implementations§
Source§impl PrivateKeyChain
impl PrivateKeyChain
Sourcepub fn new<K, D, I>(key: K, local_key_id: D, chain: I) -> Self
pub fn new<K, D, I>(key: K, local_key_id: D, chain: I) -> Self
Creates a new keychain with a given key data, key id and a list of certificates. The leaf (entity) certificate must be the first in the list, and the root certificate must be the last.
Sourcepub fn chain(&self) -> &[Certificate]
pub fn chain(&self) -> &[Certificate]
Get a slice of certificates
Sourcepub fn local_key_id(&self) -> &[u8] ⓘ
pub fn local_key_id(&self) -> &[u8] ⓘ
Get local key id
Trait Implementations§
Source§impl Clone for PrivateKeyChain
impl Clone for PrivateKeyChain
Source§fn clone(&self) -> PrivateKeyChain
fn clone(&self) -> PrivateKeyChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivateKeyChain
impl Debug for PrivateKeyChain
Source§impl PartialEq for PrivateKeyChain
impl PartialEq for PrivateKeyChain
impl Eq for PrivateKeyChain
impl StructuralPartialEq for PrivateKeyChain
Auto Trait Implementations§
impl Freeze for PrivateKeyChain
impl RefUnwindSafe for PrivateKeyChain
impl Send for PrivateKeyChain
impl Sync for PrivateKeyChain
impl Unpin for PrivateKeyChain
impl UnsafeUnpin for PrivateKeyChain
impl UnwindSafe for PrivateKeyChain
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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