Struct yubihsm::credentials::Credentials [−][src]
Credentials used to establish a session with the HSM
Fields
auth_key_id: ObjectId
Key ID to authenticate with
auth_key: AuthKey
Auth key to authenticate with
Methods
impl Credentials
[src]
impl Credentials
pub fn new(auth_key_id: ObjectId, auth_key: AuthKey) -> Self
[src]
pub fn new(auth_key_id: ObjectId, auth_key: AuthKey) -> Self
Create new Credentials
(auth key ID + AuthKey
)
pub fn from_password(auth_key_id: ObjectId, password: &[u8]) -> Self
[src]
pub fn from_password(auth_key_id: ObjectId, password: &[u8]) -> Self
Create a set of credentials from the given auth key and password Uses the same password-based key derivation method as yubihsm-shell (PBKDF2 + static salt), which is not particularly strong, so use of a long, random password is recommended.
Trait Implementations
impl Default for Credentials
[src]
impl Default for Credentials
Auto Trait Implementations
impl Send for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Sync for Credentials