Struct yubihsm::session::Session[][src]

pub struct Session<C = HttpConnector> where
    C: Connector
{ /* fields omitted */ }

Encrypted session with the YubiHSM2

Generic over connector types in case a different one needs to be swapped in, which is primarily useful for substituting the MockHSM.

Methods

impl Session<HttpConnector>
[src]

Open a new session to the HSM, authenticating with the given keypair

Open a new session to the HSM, authenticating with a given password

impl<C: Connector> Session<C>
[src]

Create a new encrypted session using the given connector, YubiHSM2 auth key ID, and static identity keys

Get the current session ID

Request current yubihsm-connector status

Auto Trait Implementations

impl<C> Send for Session<C>

impl<C> Sync for Session<C>