NAME
Crypt::HSM::Slot - A PKCS11 slot
VERSION
version 0.017
SYNOPSIS
my $session = $slot->open_session;
DESCRIPTION
This represents a slot on a PKCS implementation.
METHODS
open_session($flags = [])
This opens a Crypt::HSM::Session to this slot. $flag
is an optional array that may currently contain the value 'rw-session'
to enable writing to the token.
mechanisms()
This returns all mechanisms supported by the token in the slot as Crypt::HSM::Mechanism objects.
mechanism($name)
This returns the named mechanism as a Crypt::HSM::Mechanism object.
id()
This returns the identifier of this slot.
close_all_sessions()
This closes all sessions on this slot.
info()
This returns a hash with information about the slot.
token_info()
This returns a hash with information about the token in the slot.
init_token($pin, $label)
This initializes a token on the slot, with the associalted $pin
and $label
(max 32 characters).
AUTHOR
Leon Timmermans <fawaka@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.