Crypt::PWSafe3::Record - Represents a Passwordsafe v3 data record
use Crypt::PWSafe3; my $record = $vault->getrecord($uuid); $record->title('t2'); $record->passwd('foobar'); print $record->notes;
Crypt::PWSafe3::Record represents a Passwordsafe v3 data record. Each record consists of a number of fields of type Crypt::PWSafe3::Field. The class provides get/set methods to access the values of those fields.
It is also possible to access the raw unencoded values of the fields by accessing them directly, refer to Crypt::PWSafe3::Field for more details on this.
Returns the UUID without argument. Sets the UUID if an argument is given. Must be a hex representation of an Data::UUID object.
This will be generated automatically for new records, so you normally don't have to cope with.
Returns the username without argument. Sets the username if an argument is given.
Returns the title without argument. Sets the title if an argument is given.
Returns the password without argument. Sets the password if an argument is given.
Returns the notes without argument. Sets the notes if an argument is given.
Returns the group without argument. Sets the group if an argument is given.
Group hierarchy can be done by separating subgroups by dot, eg:
$record->group('accounts.banking');
Returns the creation time without argument. Sets the creation time if an argument is given. Argument must be an integer timestamp as returned by time().
Returns the access time without argument. Sets the access time if an argument is given. Argument must be an integer timestamp as returned by time().
Crypt::PWSafe3 doesn't update the atime field currently. So if you mind, do it yourself.
Returns the modification time of the passwd field without argument. Sets the modification time if an argument is given. Argument must be an integer timestamp as returned by time().
This will be generated automatically for modified records if the passwd field changed, so you normally don't have to cope with.
Returns the modification time without argument. Sets the modification time if an argument is given. Argument must be an integer timestamp as returned by time().
This will be generated automatically for modified records, so you normally don't have to cope with.
Returns the url without argument. Sets the url if an argument is given. The url must be in the well known notation as:
proto://host/path
Returns the password history without argument. Sets the password history if an argument is given.
Crypt::PWSafe3 doesn't update the pwhist field currently. So if you mind, do it yourself. Refer to Crypt::PWSafe3::Databaseformat for more details.
Returns the password policy without argument. Sets the password policy if an argument is given.
Crypt::PWSafe3 doesn't update the pwpol field currently. So if you mind, do it yourself. Refer to Crypt::PWSafe3::Databaseformat for more details.
Returns the password expire time without argument. Sets the password expire time if an argument is given.
Crypt::PWSafe3 doesn't update the pwexp field currently. So if you mind, do it yourself. Refer to Crypt::PWSafe3::Databaseformat for more details.
Crypt::PWSafe3::Record creates the following fields automatically on creation, because those fields are mandatory:
uuid will be generated using Data::UUID.
user, password, title will be set to the empty string.
ctime, atime, mtime, lastmod will be set to current time of creation time.
Crypt::PWSafe3
T. Linden <tlinden@cpan.org>
Copyright (c) 2011-2012 by T.Linden <tlinden@cpan.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Crypt::PWSafe3, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::PWSafe3
CPAN shell
perl -MCPAN -e shell install Crypt::PWSafe3
For more information on module installation, please visit the detailed CPAN module installation guide.