pub struct CertificateIdentifier<'a> {
pub authority_key_identifier: Cow<'a, str>,
pub serial: Cow<'a, str>,
}
Expand description
A unique certificate identifier for the ACME renewal information (ARI) extension
See https://www.rfc-editor.org/rfc/rfc9773.html#section-4.1 for more information.
Fields§
The BASE64URL-encoded authority key identifier (AKI) extension keyIdentifier
of the certificate
serial: Cow<'a, str>
The BASE64URL-encoded serial number of the certificate
Implementations§
Source§impl CertificateIdentifier<'_>
impl CertificateIdentifier<'_>
Sourcepub fn new(authority_key_identifier: Der<'_>, serial: Der<'_>) -> Self
pub fn new(authority_key_identifier: Der<'_>, serial: Der<'_>) -> Self
Encode a unique certificate identifier using the provided authority key ID and serial
authority_key_identifier
must be the DER-encoded ASN.1 octet string from the
keyIdentifier
field of the AuthorityKeyIdentifier
extension found in the certificate
to be identified.
serial
must be the DER-encoded ASN.1 serial number from the certificate to be identified.
Care must be taken to use the encoded serial number, not a big integer representation.
The combination uniquely identifies a certificate within all certificates issued by the same CA.
See RFC 5280 §4.1.2.2, RFC 5280 §4.2.1.1, and RFC 9773 §4.1
Sourcepub fn into_owned(self) -> CertificateIdentifier<'static>
pub fn into_owned(self) -> CertificateIdentifier<'static>
Convert the CertificateIdentifier
into an owned version with a static lifetime
Trait Implementations§
Source§impl<'a> Clone for CertificateIdentifier<'a>
impl<'a> Clone for CertificateIdentifier<'a>
Source§fn clone(&self) -> CertificateIdentifier<'a>
fn clone(&self) -> CertificateIdentifier<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for CertificateIdentifier<'a>
impl<'a> Debug for CertificateIdentifier<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for CertificateIdentifier<'a>
impl<'de: 'a, 'a> Deserialize<'de> for CertificateIdentifier<'a>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Display for CertificateIdentifier<'_>
impl Display for CertificateIdentifier<'_>
Source§impl<'a> PartialEq for CertificateIdentifier<'a>
impl<'a> PartialEq for CertificateIdentifier<'a>
Source§impl Serialize for CertificateIdentifier<'_>
impl Serialize for CertificateIdentifier<'_>
Source§impl<'a> TryFrom<&'a CertificateDer<'_>> for CertificateIdentifier<'_>
impl<'a> TryFrom<&'a CertificateDer<'_>> for CertificateIdentifier<'_>
impl<'a> Eq for CertificateIdentifier<'a>
impl<'a> StructuralPartialEq for CertificateIdentifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for CertificateIdentifier<'a>
impl<'a> RefUnwindSafe for CertificateIdentifier<'a>
impl<'a> Send for CertificateIdentifier<'a>
impl<'a> Sync for CertificateIdentifier<'a>
impl<'a> Unpin for CertificateIdentifier<'a>
impl<'a> UnwindSafe for CertificateIdentifier<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.