Struct Pkcs12Builder
pub struct Pkcs12Builder { /* private fields */ }Implementations§
§impl Pkcs12Builder
impl Pkcs12Builder
pub fn key_algorithm(&mut self, nid: Nid) -> &mut Pkcs12Builder
pub fn key_algorithm(&mut self, nid: Nid) -> &mut Pkcs12Builder
The encryption algorithm that should be used for the key
pub fn cert_algorithm(&mut self, nid: Nid) -> &mut Pkcs12Builder
pub fn cert_algorithm(&mut self, nid: Nid) -> &mut Pkcs12Builder
The encryption algorithm that should be used for the cert
pub fn key_iter(&mut self, iter: u32) -> &mut Pkcs12Builder
pub fn key_iter(&mut self, iter: u32) -> &mut Pkcs12Builder
Key iteration count, default is 2048 as of this writing
pub fn mac_iter(&mut self, mac_iter: u32) -> &mut Pkcs12Builder
pub fn mac_iter(&mut self, mac_iter: u32) -> &mut Pkcs12Builder
MAC iteration count, default is the same as key_iter.
Old implementations don’t understand MAC iterations greater than 1, (pre 1.0.1?), if such compatibility is required this should be set to 1.
pub fn ca(&mut self, ca: Stack<X509>) -> &mut Pkcs12Builder
pub fn ca(&mut self, ca: Stack<X509>) -> &mut Pkcs12Builder
An additional set of certificates to include in the archive beyond the one provided to
build.
pub fn build<T>(
self,
password: &str,
friendly_name: &str,
pkey: &PKeyRef<T>,
cert: &X509Ref,
) -> Result<Pkcs12, ErrorStack>where
T: HasPrivate,
pub fn build<T>(
self,
password: &str,
friendly_name: &str,
pkey: &PKeyRef<T>,
cert: &X509Ref,
) -> Result<Pkcs12, ErrorStack>where
T: HasPrivate,
Builds the PKCS #12 object
§Arguments
password- the password used to encrypt the key and certificatefriendly_name- user defined name for the certificatepkey- key to storecert- certificate to store
Auto Trait Implementations§
impl Freeze for Pkcs12Builder
impl RefUnwindSafe for Pkcs12Builder
impl Send for Pkcs12Builder
impl Sync for Pkcs12Builder
impl Unpin for Pkcs12Builder
impl UnwindSafe for Pkcs12Builder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more