pub struct ThresholdCa { /* private fields */ }Implementations§
Source§impl ThresholdCa
impl ThresholdCa
pub fn new(ca_name: &str) -> Self
pub fn issue( &self, csr: CertificateRequest, validity_days: u32, ) -> Result<IssuedCertificate, String>
pub fn revoke(&self, serial: u64) -> Result<(), String>
pub fn get(&self, serial: u64) -> Option<IssuedCertificate>
pub fn is_valid(&self, serial: u64) -> bool
pub fn cert_count(&self) -> usize
pub fn revoked_count(&self) -> usize
pub fn generate_crl(&self) -> Vec<u64>
Trait Implementations§
Source§impl Default for ThresholdCa
impl Default for ThresholdCa
Source§fn default() -> ThresholdCa
fn default() -> ThresholdCa
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ThresholdCa
impl RefUnwindSafe for ThresholdCa
impl Send for ThresholdCa
impl Sync for ThresholdCa
impl Unpin for ThresholdCa
impl UnsafeUnpin for ThresholdCa
impl UnwindSafe for ThresholdCa
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