|
NAMEFirefox::Marionette::Login - Represents a login from the Firefox Password ManagerVERSIONVersion 1.17SYNOPSISuse Firefox::Marionette(); use v5.10; my $firefox = Firefox::Marionette->new(); foreach my $login ($firefox->logins()) { if ($login->user() eq 'me@example.org') { ... } } DESCRIPTIONThis module handles the implementation of a login <https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsILoginInfo> from the Firefox Password Manager <https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins>SUBROUTINES/METHODScreation_timereturns the time, in Unix Epoch seconds, when the login was first created.creation_in_msreturns the time, in Unix Epoch milliseconds, when the login was first created. This is the same time as creation_in_ms but divided by 1000 and turned back into an integer.guidreturns the GUID to uniquely identify the login.hostreturns the scheme + hostname (for example "https://example.com") of the page containing the login form.last_used_timereturns the time, in Unix Epoch seconds, when the login was last submitted in a form or used to begin an HTTP auth session. This is the same time as last_used_in_ms but divided by 1000 and turned back into an integer.last_used_in_msreturns the time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an HTTP auth session.originreturns the scheme + hostname (for example "https://example.org") of the action <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action> attribute of the form that is being submitted.newaccepts an optional hash as a parameter. Allowed keys are below;
This method returns a new "Firefox::Marionette::Login" object. passwordreturns the password for the login.password_changed_timereturns the time, in Unix Epoch seconds, when the login's password was last modified. This is the same time as password_changed_in_ms but divided by 1000 and turned back into an integer.password_changed_in_msreturns the time, in Unix Epoch milliseconds, when the login's password was last modified.password_fieldreturns the name <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname> attribute for the password input in a form or undef for non-form logins.realmreturns the HTTP Realm for which the login was requested. When an HTTP server sends a 401 result, the WWW-Authenticate header includes a realm to identify the "protection space." See RFC 2617. If the result did not include a realm, or it was blank, the hostname is used instead. For logins obtained from HTML forms, this field is null.times_usedreturns the number of times the login was submitted in a form or used to begin an HTTP auth session.userreturns the user name for the login.user_fieldreturns the name <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname> attribute for the user input in a form or undef for non-form logins.DIAGNOSTICSNone.CONFIGURATION AND ENVIRONMENTFirefox::Marionette::Login requires no configuration files or environment variables.DEPENDENCIESNone.INCOMPATIBILITIESNone reported.BUGS AND LIMITATIONSTo report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues>AUTHORDavid Dick "<ddick@cpan.org>"LICENSE AND COPYRIGHTCopyright (c) 2021, David Dick "<ddick@cpan.org>". All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic. DISCLAIMER OF WARRANTYBECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Visit the GSP FreeBSD Man Page Interface. |