pub struct CertificateInner<P: Profile = Rfc5280> { /* private fields */ }Expand description
X.509 certificates are defined in RFC 5280 Section 4.1.
Certificate ::= SEQUENCE {
tbsCertificate TBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}Implementations§
Source§impl<P: Profile> CertificateInner<P>
impl<P: Profile> CertificateInner<P>
Sourcepub fn tbs_certificate(&self) -> &TbsCertificateInner<P>
pub fn tbs_certificate(&self) -> &TbsCertificateInner<P>
Get the TbsCertificateInner (i.e. the part the signature is computed over).
Sourcepub fn signature_algorithm(&self) -> &AlgorithmIdentifier
pub fn signature_algorithm(&self) -> &AlgorithmIdentifier
Signature algorithm used to sign the serialization of CertificateInner::tbs_certificate.
Sourcepub fn signature(&self) -> &BitString
pub fn signature(&self) -> &BitString
Signature over the DER serialization of CertificateInner::tbs_certificate using the
algorithm identified in CertificateInner::signature_algorithm.
Source§impl<P: Profile> CertificateInner<P>
impl<P: Profile> CertificateInner<P>
Trait Implementations§
Source§impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
impl<'__der_lifetime, P: Profile> DecodeValue<'__der_lifetime> for CertificateInner<P>
Source§impl<P: Profile> EncodeValue for CertificateInner<P>
impl<P: Profile> EncodeValue for CertificateInner<P>
impl<P: Eq + Profile> Eq 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.impl<'__der_lifetime, P: Profile> Sequence<'__der_lifetime> for CertificateInner<P>
impl<P: PartialEq + Profile> StructuralPartialEq for CertificateInner<P>
Auto Trait Implementations§
impl<P> Freeze for CertificateInner<P>where
TbsCertificateInner<P>: Freeze,
impl<P> RefUnwindSafe for CertificateInner<P>where
TbsCertificateInner<P>: RefUnwindSafe,
impl<P> Send for CertificateInner<P>where
TbsCertificateInner<P>: Send,
impl<P> Sync for CertificateInner<P>where
TbsCertificateInner<P>: Sync,
impl<P> Unpin for CertificateInner<P>where
TbsCertificateInner<P>: Unpin,
impl<P> UnsafeUnpin for CertificateInner<P>where
TbsCertificateInner<P>: UnsafeUnpin,
impl<P> UnwindSafe for CertificateInner<P>where
TbsCertificateInner<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 + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit