pub struct WalletContents {
pub ca_certificates: Vec<Vec<u8>>,
pub client_cert_chain: Vec<Vec<u8>>,
pub client_private_key: Option<Vec<u8>>,
}Expand description
Parsed contents of an Oracle wallet, as DER bytes ready for rustls.
Fields§
§ca_certificates: Vec<Vec<u8>>Trust-anchor / CA certificates used to verify the server (DER).
client_cert_chain: Vec<Vec<u8>>Client certificate chain for mTLS, leaf first (DER). Empty if the wallet is verify-only.
client_private_key: Option<Vec<u8>>Client private key for mTLS (DER, PKCS#8 or PKCS#1/SEC1). None if the
wallet is verify-only.
Implementations§
Source§impl WalletContents
impl WalletContents
Sourcepub fn has_client_identity(&self) -> bool
pub fn has_client_identity(&self) -> bool
Returns true if a client identity (cert chain + key) is present, i.e.
the wallet can be used for mutual TLS.
Trait Implementations§
Source§impl Clone for WalletContents
impl Clone for WalletContents
Source§fn clone(&self) -> WalletContents
fn clone(&self) -> WalletContents
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletContents
impl Debug for WalletContents
Source§impl Default for WalletContents
impl Default for WalletContents
Source§fn default() -> WalletContents
fn default() -> WalletContents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WalletContents
impl RefUnwindSafe for WalletContents
impl Send for WalletContents
impl Sync for WalletContents
impl Unpin for WalletContents
impl UnsafeUnpin for WalletContents
impl UnwindSafe for WalletContents
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