pub struct EndEntityBuilder { /* private fields */ }
Expand description
CertificateParams from which an EndEntity Certificate can be built
Implementations§
Source§impl EndEntityBuilder
impl EndEntityBuilder
Sourcepub fn new(params: CertificateParams, alg: KeyPairAlgorithm) -> Self
pub fn new(params: CertificateParams, alg: KeyPairAlgorithm) -> Self
Initialize EndEntityBuilder
Sourcepub fn common_name(self, name: &str) -> Self
pub fn common_name(self, name: &str) -> Self
Add CommonName to distinguished_name
. Multiple calls will
replace previous value.
Sourcepub fn subject_alternative_names(self, sans: Vec<SanType>) -> Self
pub fn subject_alternative_names(self, sans: Vec<SanType>) -> Self
SanTypes
that will be recorded as
subject_alt_names
. Multiple calls will append to previous
values.
Sourcepub fn client_auth(&mut self) -> &Self
pub fn client_auth(&mut self) -> &Self
Add ClientAuth to extended_key_usages
if it is not already present.
Sourcepub fn server_auth(&mut self) -> &Self
pub fn server_auth(&mut self) -> &Self
Add ServerAuth to extended_key_usages
if it is not already present.
Auto Trait Implementations§
impl Freeze for EndEntityBuilder
impl RefUnwindSafe for EndEntityBuilder
impl Send for EndEntityBuilder
impl Sync for EndEntityBuilder
impl Unpin for EndEntityBuilder
impl UnwindSafe for EndEntityBuilder
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