T. Linden

NAME

Crypt::PWSafe3::HeaderField - represent a passwordsafe v3 header field.

SYNOPSIS

 use Crypt::PWSafe3;
 my $who = $vault->getheader('wholastsaved');
 print $who->value;

 my $h = new Crypt::PWSafe3::HeaderField(name => 'savedonhost',
                                         value => 'localhost');
 $vault->addheader($h);

DESCRIPTION

Crypt::PWSafe3::HeaderField represents a header field. This is the raw implementation and you normally don't have to cope with it.

However, if you ever do, you can add/replace any field type this way:

 my $field = new Crypt::PWSafe3::HeaderField(
                                        value => 'localhost',
                                        name  => 'savedonhost'
                                      );
 $record->addheader($field);

This is the preferred way to do it, Crypt::PWSafe3 does it internaly exactly like this.

If there already exists a field of this type, it will be overwritten.

HEADER FIELDS

A password safe v3 database supports the following header fields:

version

uuid

preferences

treedisplaystatus

lastsavetime

wholastsaved

whatlastsaved

savedbyuser

savedonhost

databasename

databasedescr

databasefilters

eof

Refer to Crypt::PWSafe3::Databaseformat for details on those header fields.

SEE ALSO

Crypt::PWSafe3

AUTHOR

T. Linden <tlinden@cpan.org>

COPYRIGHT

Copyright (c) 2011 by T.Linden <tlinden@cpan.org>. All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.