pub struct CertificateInner<P: Profile = Rfc5280> {
pub tbs_certificate: TbsCertificateInner<P>,
pub signature_algorithm: AlgorithmIdentifierOwned,
pub signature: BitString,
}
Expand description
X.509 certificates are defined in RFC 5280 Section 4.1.
Certificate ::= SEQUENCE {
tbsCertificate TBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
Fields§
§tbs_certificate: TbsCertificateInner<P>
§signature_algorithm: AlgorithmIdentifierOwned
§signature: BitString
Implementations§
Source§impl<P: Profile> CertificateInner<P>
impl<P: Profile> CertificateInner<P>
Trait Implementations§
Source§impl<'arbitrary, P: Profile + Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for CertificateInner<P>
impl<'arbitrary, P: Profile + Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for CertificateInner<P>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl<P: Clone + Profile> Clone for CertificateInner<P>
impl<P: Clone + Profile> Clone for CertificateInner<P>
Source§fn clone(&self) -> CertificateInner<P>
fn clone(&self) -> CertificateInner<P>
Returns a copy 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 moreSource§impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
Source§impl<'__der_lifetime, P: Profile> EncodeValue for CertificateInner<P>
impl<'__der_lifetime, P: Profile> EncodeValue for CertificateInner<P>
Source§impl<P: Profile> PemLabel for CertificateInner<P>
Available on crate feature pem
only.
impl<P: Profile> PemLabel for CertificateInner<P>
Available on crate feature
pem
only.Source§impl ValueOrd for CertificateInner
impl ValueOrd for CertificateInner
impl<P: Eq + Profile> Eq for CertificateInner<P>
impl<'__der_lifetime, P: Profile> Sequence<'__der_lifetime> for CertificateInner<P>
impl<P: Profile> StructuralPartialEq for CertificateInner<P>
Auto Trait Implementations§
impl<P> Freeze for CertificateInner<P>
impl<P> RefUnwindSafe for CertificateInner<P>where
P: RefUnwindSafe,
impl<P> Send for CertificateInner<P>where
P: Send,
impl<P> Sync for CertificateInner<P>where
P: Sync,
impl<P> Unpin for CertificateInner<P>where
P: Unpin,
impl<P> UnwindSafe for CertificateInner<P>where
P: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
Source§impl<T> DecodePem for Twhere
T: DecodeOwned + PemLabel,
impl<T> DecodePem for Twhere
T: DecodeOwned + PemLabel,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.