[][src]Struct rcgen::CustomExtension

pub struct CustomExtension { /* fields omitted */ }

A custom extension of a certificate, as specified in RFC 5280

Methods

impl CustomExtension[src]

pub fn new_acme_identifier(sha_digest: &[u8]) -> Self[src]

Creates a new acmeIdentifier extension for ACME TLS-ALPN-01 as specified in draft-ietf-acme-tls-alpn-05

Panics if the passed sha_digest parameter doesn't hold 32 bytes (256 bits).

pub fn from_oid_content(oid: &[u64], content: Vec<u8>) -> Self[src]

Create a new custom extension

pub fn set_criticality(&mut self, criticality: bool)[src]

Sets the criticality flag of the extension.

Auto Trait Implementations

impl Send for CustomExtension

impl Sync for CustomExtension

impl Unpin for CustomExtension

impl UnwindSafe for CustomExtension

impl RefUnwindSafe for CustomExtension

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]