[][src]Struct in_stream::TlsCertificate

pub struct TlsCertificate {
    pub pkcs12_data: Vec<u8>,
    pub passphrase: String,
}

represents an encrypted TLS certificate, and the passphrase to decrypt it obviously, when serializing, you should only encode the data, not the passphrase

Fields

pkcs12_data: Vec<u8>passphrase: String

Implementations

impl TlsCertificate[src]

pub fn generate_dev() -> Self[src]

generate a self-signed dev certificate

pub fn with_fake_certificate() -> Self[src]

WARNING - do not use this with any sensitive data - the private key is PUBLIC use a pre-generated fake certificate speeds up unit tests, because we don't have to generate an RSA keypair

Trait Implementations

impl Clone for TlsCertificate[src]

impl Debug for TlsCertificate[src]

impl PartialEq<TlsCertificate> for TlsCertificate[src]

impl StructuralPartialEq for TlsCertificate[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,