[][src]Struct p12::PFX

pub struct PFX {
    pub version: u8,
    pub auth_safe: ContentInfo,
    pub mac_data: Option<MacData>,
}

Fields

version: u8auth_safe: ContentInfomac_data: Option<MacData>

Methods

impl PFX[src]

pub fn new(
    cert_der: &[u8],
    key_der: &[u8],
    ca_der: Option<&[u8]>,
    password: &str,
    name: &str
) -> Option<PFX>
[src]

pub fn parse(bytes: &[u8]) -> Result<PFX, ASN1Error>[src]

pub fn write(&self, w: DERWriter)[src]

pub fn to_der(&self) -> Vec<u8>[src]

pub fn bags(&self, password: &str) -> Result<Vec<SafeBag>, ASN1Error>[src]

pub fn cert_bags(&self, password: &str) -> Result<Vec<Vec<u8>>, ASN1Error>[src]

pub fn key_bags(&self, password: &str) -> Result<Vec<Vec<u8>>, ASN1Error>[src]

pub fn verify_mac(&self, password: &str) -> bool[src]

Trait Implementations

impl Debug for PFX[src]

Auto Trait Implementations

impl RefUnwindSafe for PFX

impl Send for PFX

impl Sync for PFX

impl Unpin for PFX

impl UnwindSafe for PFX

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.