Enum p12::SafeBagKind
source · [−]pub enum SafeBagKind {
Pkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo),
CertBag(CertBag),
OtherBagKind(OtherBag),
}
Variants
Pkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo)
CertBag(CertBag)
OtherBagKind(OtherBag)
Implementations
sourceimpl 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
sourceimpl Clone for SafeBagKind
impl Clone for SafeBagKind
sourcefn clone(&self) -> SafeBagKind
fn clone(&self) -> SafeBagKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SafeBagKind
impl Send for SafeBagKind
impl Sync for SafeBagKind
impl Unpin for SafeBagKind
impl UnwindSafe for SafeBagKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more