[][src]Enum tmkms::config::provider::yubihsm::AuthConfig

pub enum AuthConfig {
    Path {
        key: u16,
        password_file: PathBuf,
    },
    String {
        key: u16,
        password: Secret<Password>,
    },
}

Configuration options for this connector

Variants

Path

Path to a separate password file

Fields of Path

key: u16

Authentication key ID to use to authenticate to the YubiHSM

password_file: PathBuf

Password file path

String

Read password directly from the config file

Fields of String

key: u16

Authentication key ID to use to authenticate to the YubiHSM

password: Secret<Password>

Password to use to authenticate to the YubiHSM

Methods

impl AuthConfig[src]

pub fn credentials(&self) -> Credentials[src]

Get the yubihsm::Credentials for this AuthConfig

Trait Implementations

impl Clone for AuthConfig[src]

impl Debug for AuthConfig[src]

impl<'de> Deserialize<'de> for AuthConfig[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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>,