pub struct Builder<'a> { /* private fields */ }
Available on crate feature
x509
only.Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn subject(&mut self, subject: &str) -> Result<&mut Self>
Available on crate feature
std
only.pub fn subject_with_nul(&mut self, subject: &str) -> Result<&mut Self>
pub fn issuer(&mut self, issuer: &str) -> Result<&mut Self>
Available on crate feature
std
only.pub fn issuer_with_nul(&mut self, issuer: &str) -> Result<&mut Self>
pub fn subject_key(&mut self, key: &'a mut Pk) -> &mut Self
pub fn issuer_key(&mut self, key: &'a mut Pk) -> &mut Self
pub fn signature_hash(&mut self, md: MdType) -> &mut Self
pub fn key_usage(&mut self, usage: KeyUsage) -> Result<&mut Self>
pub fn extension( &mut self, oid: &[u8], val: &[u8], critical: bool, ) -> Result<&mut Self>
pub fn basic_constraints( &mut self, ca: bool, pathlen: Option<u32>, ) -> Result<&mut Self>
pub fn validity( &mut self, not_before: Time, not_after: Time, ) -> Result<&mut Self>
pub fn serial(&mut self, serial: &[u8]) -> Result<&mut Self>
pub fn write_der<'buf, F: Random>( &mut self, buf: &'buf mut [u8], rng: &mut F, ) -> Result<Option<&'buf [u8]>>
pub fn write_der_vec<F: Random>(&mut self, rng: &mut F) -> Result<Vec<u8>>
pub fn write_pem<'buf, F: Random>( &mut self, buf: &'buf mut [u8], rng: &mut F, ) -> Result<Option<&'buf [u8]>>
pub fn write_pem_string<F: Random>(&mut self, rng: &mut F) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnwindSafe for Builder<'a>
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