NAME
WWW::KeePassHttp::Entry - Object-oriented access to an Entry retrived using WWW::KeePassHttp
SYNOPSIS
use WWW::KeePassHttp;
my $kph = WWW::KeePassHttp->new(Key => $key);
$kph->associate() unless $kph->test_associate();
my @entries = @${ $kph->get_logins($search_string) };
print $entry[0]->url;
print $entry[0]->login;
print $entry[0]->password;
print $entry[0]->uuid;
DESCRIPTION
Object-oriented access to an Entry retrived using WWW::KeePassHttp.
DETAILS
- new
-
my $entry = WWW::KeePassHttp::Entry->new( Url => 'https://github.com', Login => 'username', Password => 'password');
Creates a new Entry object.
WWW::KeePassHttp will do this for you when you grab entries. Or you can create a new Entry object when you want to set_login
Url, Login, and Password are all required to be defined. If you want those fields "empty", just use an emtpy string
''
as the value. The Uuid will also be returned from an existing Entry from the database (but will be ignored ) - url
- name
-
print $entry->url(); print $entry->name(); # gives same result as ->url() $entry->url('https://new.url/'); # set new value
The getter/setter for the Url of the Entry. Due to the nomenclature of the KeePassHttp plugin's
get-logins
structure, the Url can also be accessed as the Name of the entry (since KeePassHttp uses the URL for both the URL field and the Title/Name field). - login
-
print $entry->login(); $entry->login('https://new.url/'); # set new value
The getter/setter for the Login of the Entry.
- password
-
print $entry->password(); $entry->password('https://new.url/'); # set new value
The getter/setter for the Password of the Entry.
- uuid
-
print $entry->uuid(); # the UUID from the database entry
The getter for the UUID of the Entry.
AUTHOR
Peter C. Jones <petercj AT cpan DOT org>
Please report any bugs or feature requests thru the repository's interface at https://github.com/pryrt/WWW-KeePassHttp/issues.
COPYRIGHT
Copyright (C) 2021 Peter C. Jones
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.