pub struct SignedCertificateTimestampList(/* private fields */);
Available on crate feature
sct
only.Expand description
A signed certificate timestamp list (SCT list) as defined in RFC 6962 Section 3.3.
SignedCertificateTimestampList ::= OCTET STRING
Implementations§
source§impl SignedCertificateTimestampList
impl SignedCertificateTimestampList
sourcepub fn new(serialized_scts: &[SerializedSct]) -> Result<Self, Error>
pub fn new(serialized_scts: &[SerializedSct]) -> Result<Self, Error>
Creates a new SignedCertificateTimestampList
from a slice of SerializedSct
s.
sourcepub fn parse_timestamps(&self) -> Result<Vec<SerializedSct>, Error>
pub fn parse_timestamps(&self) -> Result<Vec<SerializedSct>, Error>
Parses the encoded SerializedScts and returns a Vec containing them.
Returns an error if a SerializedSct can’t be deserialized or if there are trailing bytes after all SerializedScts are deserialized.
Trait Implementations§
source§impl<'a> AsMut<OctetString> for SignedCertificateTimestampList
impl<'a> AsMut<OctetString> for SignedCertificateTimestampList
source§fn as_mut(&mut self) -> &mut OctetString
fn as_mut(&mut self) -> &mut OctetString
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<'a> AsRef<OctetString> for SignedCertificateTimestampList
impl<'a> AsRef<OctetString> for SignedCertificateTimestampList
source§fn as_ref(&self) -> &OctetString
fn as_ref(&self) -> &OctetString
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AssociatedOid for SignedCertificateTimestampList
impl AssociatedOid for SignedCertificateTimestampList
source§const OID: ObjectIdentifier = CT_PRECERT_SCTS
const OID: ObjectIdentifier = CT_PRECERT_SCTS
The OID associated with this type.
source§impl<'a> DecodeValue<'a> for SignedCertificateTimestampList
impl<'a> DecodeValue<'a> for SignedCertificateTimestampList
source§impl<'a> EncodeValue for SignedCertificateTimestampList
impl<'a> EncodeValue for SignedCertificateTimestampList
source§impl<'a> FixedTag for SignedCertificateTimestampList
impl<'a> FixedTag for SignedCertificateTimestampList
source§impl<'a> From<OctetString> for SignedCertificateTimestampList
impl<'a> From<OctetString> for SignedCertificateTimestampList
source§fn from(value: OctetString) -> Self
fn from(value: OctetString) -> Self
Converts to this type from the input type.
source§impl<'a> From<SignedCertificateTimestampList> for OctetString
impl<'a> From<SignedCertificateTimestampList> for OctetString
source§fn from(value: SignedCertificateTimestampList) -> Self
fn from(value: SignedCertificateTimestampList) -> Self
Converts to this type from the input type.
source§impl PartialEq for SignedCertificateTimestampList
impl PartialEq for SignedCertificateTimestampList
source§fn eq(&self, other: &SignedCertificateTimestampList) -> bool
fn eq(&self, other: &SignedCertificateTimestampList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ValueOrd for SignedCertificateTimestampList
impl<'a> ValueOrd for SignedCertificateTimestampList
impl StructuralPartialEq for SignedCertificateTimestampList
Auto Trait Implementations§
impl RefUnwindSafe for SignedCertificateTimestampList
impl Send for SignedCertificateTimestampList
impl Sync for SignedCertificateTimestampList
impl Unpin for SignedCertificateTimestampList
impl UnwindSafe for SignedCertificateTimestampList
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<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
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.