Struct CertifiedIssuer
pub struct CertifiedIssuer<'a, S> { /* private fields */ }
Expand description
An Issuer
wrapper that also contains the issuer’s Certificate
.
Implementations§
§impl<'a, S> CertifiedIssuer<'a, S>where
S: SigningKey,
impl<'a, S> CertifiedIssuer<'a, S>where
S: SigningKey,
pub fn self_signed(
params: CertificateParams,
signing_key: S,
) -> Result<CertifiedIssuer<'a, S>, Error>
pub fn self_signed( params: CertificateParams, signing_key: S, ) -> Result<CertifiedIssuer<'a, S>, Error>
Create a new issuer from the given parameters and key, with a self-signed certificate.
pub fn signed_by(
params: CertificateParams,
signing_key: S,
issuer: &Issuer<'_, impl SigningKey>,
) -> Result<CertifiedIssuer<'a, S>, Error>
pub fn signed_by( params: CertificateParams, signing_key: S, issuer: &Issuer<'_, impl SigningKey>, ) -> Result<CertifiedIssuer<'a, S>, Error>
Create a new issuer from the given parameters and key, signed by the given issuer
.
pub fn der(&self) -> &CertificateDer<'static>
pub fn der(&self) -> &CertificateDer<'static>
Get the certificate in DER encoded format.
See also Certificate::der()
Methods from Deref<Target = Issuer<'a, S>>§
pub fn key_usages(&self) -> &[KeyUsagePurpose]
pub fn key_usages(&self) -> &[KeyUsagePurpose]
Allowed key usages for this issuer.
Trait Implementations§
§impl<'a, S> AsRef<Certificate> for CertifiedIssuer<'a, S>
impl<'a, S> AsRef<Certificate> for CertifiedIssuer<'a, S>
§fn as_ref(&self) -> &Certificate
fn as_ref(&self) -> &Certificate
Converts this type into a shared reference of the (usually inferred) input type.
§impl<'a, S> Debug for CertifiedIssuer<'a, S>where
S: Debug,
impl<'a, S> Debug for CertifiedIssuer<'a, S>where
S: Debug,
Auto Trait Implementations§
impl<'a, S> Freeze for CertifiedIssuer<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for CertifiedIssuer<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for CertifiedIssuer<'a, S>
impl<'a, S> Sync for CertifiedIssuer<'a, S>where
S: Sync,
impl<'a, S> Unpin for CertifiedIssuer<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for CertifiedIssuer<'a, S>where
S: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more