| Wallet::Object::File(3pm) | User Contributed Perl Documentation | Wallet::Object::File(3pm) |
Wallet::Object::File - File object implementation for wallet
my @name = qw(file mysql-lsdb)
my @trace = ($user, $host, time);
my $object = Wallet::Object::File->create (@name, $schema, @trace);
unless ($object->store ("the-password\n")) {
die $object->error, "\n";
}
my $password = $object->get (@trace);
$object->destroy (@trace);
Wallet::Object::File is a representation of simple file objects in the wallet. It implements the wallet object API and provides the necessary glue to store a file on the wallet server, retrieve it later, and delete it when the file object is deleted. A file object must be stored before it can be retrieved with get.
To use this object, the configuration option specifying where on the wallet server to store file objects must be set. See Wallet::Config for details on this configuration parameter and information about how to set wallet configuration.
This object mostly inherits from Wallet::Object::Base. See the documentation for that class for all generic methods. Below are only those methods that are overridden or behave specially for this implementation.
If FILE_MAX_SIZE is set in the wallet configuration, a store() of DATA larger than that configuration setting will be rejected.
The wallet implementation itself can handle arbitrary file object names. However, due to limitations in the remctld server usually used to run wallet-backend, file object names containing nul characters (ASCII 0) may not be permitted. The file system used for storing file objects may impose a length limitation on the file object name.
remctld(8), Wallet::Config(3), Wallet::Object::Base(3), wallet-backend(8)
This module is part of the wallet system. The current version is available from <https://www.eyrie.org/~eagle/software/wallet/>.
Russ Allbery <eagle@eyrie.org> Bill MacAllister <bill@ca-zephyr.org>
| 2024-11-12 | perl v5.40.0 |