Struct rcgen::CustomExtension
source · pub struct CustomExtension { /* private fields */ }
Expand description
A custom extension of a certificate, as specified in RFC 5280
Implementations§
source§impl CustomExtension
impl CustomExtension
sourcepub fn new_acme_identifier(sha_digest: &[u8]) -> Self
pub fn new_acme_identifier(sha_digest: &[u8]) -> Self
Creates a new acmeIdentifier extension for ACME TLS-ALPN-01 as specified in RFC 8737
Panics if the passed sha_digest
parameter doesn’t hold 32 bytes (256 bits).
sourcepub fn from_oid_content(oid: &[u64], content: Vec<u8>) -> Self
pub fn from_oid_content(oid: &[u64], content: Vec<u8>) -> Self
Create a new custom extension with the specified content
sourcepub fn set_criticality(&mut self, criticality: bool)
pub fn set_criticality(&mut self, criticality: bool)
Sets the criticality flag of the extension.
sourcepub fn criticality(&self) -> bool
pub fn criticality(&self) -> bool
Obtains the criticality flag of the extension.
sourcepub fn oid_components(&self) -> impl Iterator<Item = u64> + '_
pub fn oid_components(&self) -> impl Iterator<Item = u64> + '_
Obtains the OID components of the extensions, as u64 pieces
Trait Implementations§
source§impl Clone for CustomExtension
impl Clone for CustomExtension
source§fn clone(&self) -> CustomExtension
fn clone(&self) -> CustomExtension
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 Debug for CustomExtension
impl Debug for CustomExtension
source§impl Hash for CustomExtension
impl Hash for CustomExtension
source§impl PartialEq for CustomExtension
impl PartialEq for CustomExtension
source§fn eq(&self, other: &CustomExtension) -> bool
fn eq(&self, other: &CustomExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CustomExtension
impl StructuralPartialEq for CustomExtension
Auto Trait Implementations§
impl Freeze for CustomExtension
impl RefUnwindSafe for CustomExtension
impl Send for CustomExtension
impl Sync for CustomExtension
impl Unpin for CustomExtension
impl UnwindSafe for CustomExtension
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)