Struct yubihsm::connector::Connector
[−]
[src]
pub struct Connector { /* fields omitted */ }
yubihsm-connector client
Methods
impl Connector
[src]
pub fn open(connector_url: &str) -> Result<Self, Error>
[src]
Open a connection to a yubihsm-connector
pub fn status(&self) -> Result<Status, Error>
[src]
GET /connector/status returning the result as connector::Status
pub fn create_session(
&self,
auth_key_id: ObjectId,
static_keys: &StaticKeys
) -> Result<Session, Error>
[src]
&self,
auth_key_id: ObjectId,
static_keys: &StaticKeys
) -> Result<Session, Error>
Open a new session to the HSM, authenticating with the given keypair
pub fn create_session_from_password(
&self,
auth_key_id: ObjectId,
password: &str
) -> Result<Session, Error>
[src]
&self,
auth_key_id: ObjectId,
password: &str
) -> Result<Session, Error>
Open a new session to the HSM, authenticating with a given password