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
Trait Implementations§
Source§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 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> 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.