pub struct Issuer<'a, S> { /* private fields */ }Expand description
An issuer that can sign certificates.
Encapsulates the distinguished name, key identifier method, key usages and signing key of the issuing certificate.
Implementations§
Source§impl<'a, S: SigningKey> Issuer<'a, S>
impl<'a, S: SigningKey> Issuer<'a, S>
Sourcepub fn new(params: CertificateParams, signing_key: S) -> Self
pub fn new(params: CertificateParams, signing_key: S) -> Self
Create a new issuer from the given parameters and signing key.
Sourcepub fn from_params(params: &'a CertificateParams, signing_key: S) -> Self
pub fn from_params(params: &'a CertificateParams, signing_key: S) -> Self
Create a new issuer from the given parameters and signing key references.
Use Issuer::new instead if you want to obtain an Issuer that owns
its parameters.
Sourcepub fn key_usages(&self) -> &[KeyUsagePurpose]
pub fn key_usages(&self) -> &[KeyUsagePurpose]
Allowed key usages for this issuer.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Issuer<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for Issuer<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Issuer<'a, S>where
S: Send,
impl<'a, S> Sync for Issuer<'a, S>where
S: Sync,
impl<'a, S> Unpin for Issuer<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Issuer<'a, S>where
S: UnwindSafe,
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