pub struct X509CertificateManager { /* private fields */ }
Expand description
Enhanced X.509 Certificate Manager
Implementations§
Source§impl X509CertificateManager
impl X509CertificateManager
Sourcepub fn new(config: X509Config) -> Self
pub fn new(config: X509Config) -> Self
Create new X.509 certificate manager
Sourcepub async fn initialize(&self) -> Result<()>
pub async fn initialize(&self) -> Result<()>
Initialize certificate manager with CA certificates
Sourcepub async fn sign_certificate_request(
&self,
request: &CertificateRequest,
ca_id: &str,
) -> Result<StoredCertificate>
pub async fn sign_certificate_request( &self, request: &CertificateRequest, ca_id: &str, ) -> Result<StoredCertificate>
Sign certificate request
Sourcepub async fn revoke_certificate(
&self,
serial_number: &str,
reason: RevocationReason,
additional_info: Option<String>,
) -> Result<()>
pub async fn revoke_certificate( &self, serial_number: &str, reason: RevocationReason, additional_info: Option<String>, ) -> Result<()>
Revoke certificate
Sourcepub async fn check_certificate_status(
&self,
serial_number: &str,
) -> Result<CertificateStatus>
pub async fn check_certificate_status( &self, serial_number: &str, ) -> Result<CertificateStatus>
Check certificate status
Sourcepub async fn get_certificate(
&self,
cert_id: &str,
) -> Result<Option<StoredCertificate>>
pub async fn get_certificate( &self, cert_id: &str, ) -> Result<Option<StoredCertificate>>
Get certificate by ID
Sourcepub async fn list_certificates(
&self,
filter: Option<CertificateFilter>,
) -> Result<Vec<StoredCertificate>>
pub async fn list_certificates( &self, filter: Option<CertificateFilter>, ) -> Result<Vec<StoredCertificate>>
List certificates
Sourcepub async fn generate_crl(&self, ca_id: &str) -> Result<String>
pub async fn generate_crl(&self, ca_id: &str) -> Result<String>
Generate Certificate Revocation List (CRL)
Sourcepub async fn validate_certificate_chain(&self, cert_pem: &str) -> Result<bool>
pub async fn validate_certificate_chain(&self, cert_pem: &str) -> Result<bool>
Validate certificate chain
Trait Implementations§
Source§impl Clone for X509CertificateManager
impl Clone for X509CertificateManager
Source§fn clone(&self) -> X509CertificateManager
fn clone(&self) -> X509CertificateManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for X509CertificateManager
impl !RefUnwindSafe for X509CertificateManager
impl Send for X509CertificateManager
impl Sync for X509CertificateManager
impl Unpin for X509CertificateManager
impl !UnwindSafe for X509CertificateManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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