.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Firefox::Marionette::Login 3pm" .TH Firefox::Marionette::Login 3pm "2023-12-22" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Firefox::Marionette::Login \- Represents a login from the Firefox Password Manager .SH "VERSION" .IX Header "VERSION" Version 1.35 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Firefox::Marionette(); \& use v5.10; \& \& my $firefox = Firefox::Marionette\->new(); \& foreach my $login ($firefox\->logins()) { \& if ($login\->user() eq \*(Aqme@example.org\*(Aq) { \& ... \& } \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module handles the implementation of a login from the Firefox Password Manager .SH "SUBROUTINES/METHODS" .IX Header "SUBROUTINES/METHODS" .SS "creation_time" .IX Subsection "creation_time" returns the time, in Unix Epoch seconds, when the login was first created. .SS "creation_in_ms" .IX Subsection "creation_in_ms" returns 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. .SS "guid" .IX Subsection "guid" returns the \s-1GUID\s0 to uniquely identify the login. .SS "host" .IX Subsection "host" returns the scheme + hostname (for example \*(L"https://example.com\*(R") of the page containing the login form. .SS "last_used_time" .IX Subsection "last_used_time" returns the time, in Unix Epoch seconds, when the login was last submitted in a form or used to begin an \s-1HTTP\s0 auth session. This is the same time as last_used_in_ms but divided by 1000 and turned back into an integer. .SS "last_used_in_ms" .IX Subsection "last_used_in_ms" returns the time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an \s-1HTTP\s0 auth session. .SS "origin" .IX Subsection "origin" returns the scheme + hostname (for example \*(L"https://example.org\*(R") of the action attribute of the form that is being submitted. .SS "new" .IX Subsection "new" accepts an optional hash as a parameter. Allowed keys are below; .IP "\(bu" 4 creation_in_ms \- the time, in Unix Epoch milliseconds, when the login was first created. .IP "\(bu" 4 creation_time \- the time, in Unix Epoch seconds, when the login was first created. This value will be overridden by the more precise creation_in_ms parameter, if provided. .IP "\(bu" 4 guid \- the \s-1GUID\s0 to uniquely identify the login. This can be any arbitrary string, but a format as created by nsIUUIDGenerator is recommended. For example, \*(L"{d4e1a1f6\-5ea0\-40ee\-bff5\-da57982f21cf}\*(R". .IP "\(bu" 4 host \- this is the scheme + hostname (for example \*(L"https://example.com\*(R") of the page containing the login form. .IP "\(bu" 4 last_used_in_ms returns the time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an \s-1HTTP\s0 auth session. .IP "\(bu" 4 last_used_time \- the time, in Unix Epoch seconds, when the login was last submitted in a form or used to begin an \s-1HTTP\s0 auth session. This value will be overridden by the more precise last_used_in_ms parameter, if provided. .IP "\(bu" 4 origin \- this is the scheme + hostname (for example \*(L"https://example.org\*(R") of the action attribute of the form that is being submitted. If the action attribute has an empty or relative \s-1URL,\s0 then this value should be the same as the host. If this value is ignored, it will apply for forms with action of all values. .IP "\(bu" 4 password \- the password for the login. .IP "\(bu" 4 password_changed_in_ms \- the time, in Unix Epoch milliseconds, when the login's password was last modified. .IP "\(bu" 4 password_changed_time \- the time, in Unix Epoch seconds, when the login's password was last modified. This value will be overridden by the more precise password_changed_in_ms parameter, if provided. .IP "\(bu" 4 password_field \- the name attribute for the password input in a form. This is ignored for http auth logins. .IP "\(bu" 4 realm \- the \s-1HTTP\s0 Realm for which the login was requested. This is ignored for \s-1HTML\s0 Form logins. .IP "\(bu" 4 times_used \- the number of times the login was submitted in a form or used to begin an \s-1HTTP\s0 auth session. .IP "\(bu" 4 user \- the user name for the login. .IP "\(bu" 4 user_field \- the name attribute for the user input in a form. This is ignored for http auth logins. .PP This method returns a new \f(CW\*(C`Firefox::Marionette::Login\*(C'\fR object. .SS "password" .IX Subsection "password" returns the password for the login. .SS "password_changed_time" .IX Subsection "password_changed_time" returns 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. .SS "password_changed_in_ms" .IX Subsection "password_changed_in_ms" returns the time, in Unix Epoch milliseconds, when the login's password was last modified. .SS "password_field" .IX Subsection "password_field" returns the name attribute for the password input in a form or undef for non-form logins. .SS "realm" .IX Subsection "realm" returns the \s-1HTTP\s0 Realm for which the login was requested. When an \s-1HTTP\s0 server sends a 401 result, the WWW-Authenticate header includes a realm to identify the \*(L"protection space.\*(R" See \s-1RFC 2617.\s0 If the result did not include a realm, or it was blank, the hostname is used instead. For logins obtained from \s-1HTML\s0 forms, this field is null. .SS "times_used" .IX Subsection "times_used" returns the number of times the login was submitted in a form or used to begin an \s-1HTTP\s0 auth session. .SS "user" .IX Subsection "user" returns the user name for the login. .SS "user_field" .IX Subsection "user_field" returns the name attribute for the user input in a form or undef for non-form logins. .SH "DIAGNOSTICS" .IX Header "DIAGNOSTICS" None. .SH "CONFIGURATION AND ENVIRONMENT" .IX Header "CONFIGURATION AND ENVIRONMENT" Firefox::Marionette::Login requires no configuration files or environment variables. .SH "DEPENDENCIES" .IX Header "DEPENDENCIES" None. .SH "INCOMPATIBILITIES" .IX Header "INCOMPATIBILITIES" None reported. .SH "BUGS AND LIMITATIONS" .IX Header "BUGS AND LIMITATIONS" To report a bug, or view the current list of bugs, please visit .SH "AUTHOR" .IX Header "AUTHOR" David Dick \f(CW\*(C`\*(C'\fR .SH "LICENSE AND COPYRIGHT" .IX Header "LICENSE AND COPYRIGHT" Copyright (c) 2023, David Dick \f(CW\*(C`\*(C'\fR. All rights reserved. .PP This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See \*(L"perlartistic\*(R" in perlartistic. .SH "DISCLAIMER OF WARRANTY" .IX Header "DISCLAIMER OF WARRANTY" \&\s-1BECAUSE 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 \*(L"AS IS\*(R" 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.\s0 .PP \&\s-1IN 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\s0 (\s-1INCLUDING 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\s0), \s-1EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\s0