Struct vault_client::CaChain [−][src]
pub struct CaChain { /* fields omitted */ }
The type of a non-empty CA chain. This is useful for validating PEM data.
Note that we don't store these as X509
objects, because those don't implement Send
.
Methods
impl CaChain
[src]
impl CaChain
pub fn try_from_pem(pem: &str) -> Result<Self>
[src]
pub fn try_from_pem(pem: &str) -> Result<Self>
Try to create a CaChain
from PEM-formatted bytes.
This also validates the PEM.
pub fn leaf(self) -> String
[src]
pub fn leaf(self) -> String
Get the certificate furthest from the root certificate. Usually, this is the issuer's CA certificate.
pub fn root(self) -> String
[src]
pub fn root(self) -> String
Get the root CA certificate.
Trait Implementations
impl PartialEq for CaChain
[src]
impl PartialEq for CaChain
fn eq(&self, other: &CaChain) -> bool
[src]
fn eq(&self, other: &CaChain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CaChain) -> bool
[src]
fn ne(&self, other: &CaChain) -> bool
This method tests for !=
.
impl Clone for CaChain
[src]
impl Clone for CaChain
fn clone(&self) -> CaChain
[src]
fn clone(&self) -> CaChain
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for CaChain
[src]
impl Debug for CaChain