pub enum SafeBagKind {
Pkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo),
CertBag(CertBag),
OtherBagKind(OtherBag),
}
Variants§
Implementations§
Source§impl SafeBagKind
impl SafeBagKind
pub fn parse( r: BERReader<'_, '_>, bag_id: ObjectIdentifier, ) -> Result<Self, ASN1Error>
pub fn write(&self, w: DERWriter<'_>)
pub fn oid(&self) -> ObjectIdentifier
pub fn get_x509_cert(&self) -> Option<Vec<u8>>
pub fn get_sdsi_cert(&self) -> Option<String>
pub fn get_key(&self, password: &[u8]) -> Option<Vec<u8>>
Trait Implementations§
Source§impl Clone for SafeBagKind
impl Clone for SafeBagKind
Source§fn clone(&self) -> SafeBagKind
fn clone(&self) -> SafeBagKind
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for SafeBagKind
impl RefUnwindSafe for SafeBagKind
impl Send for SafeBagKind
impl Sync for SafeBagKind
impl Unpin for SafeBagKind
impl UnwindSafe for SafeBagKind
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