Struct xpcom::interfaces::nsILoginInfo
[−]
[src]
#[repr(C)]pub struct nsILoginInfo { /* fields omitted */ }
interface nsILoginInfo : nsISupports
/**
* An object containing information for a login stored by the
* password manager.
*/
Methods
impl nsILoginInfo
[src]
pub fn coerce<T: nsILoginInfoCoerce>(&self) -> &T
[src]
Cast this nsILoginInfo
to one of its base interfaces.
impl nsILoginInfo
[src]
pub unsafe fn GetHostname(&self, aHostname: &mut nsAString) -> nsresult
[src]
/**
* The hostname the login applies to.
*
* The hostname should be formatted as an URL. For example,
* "https://site.com", "http://site.com:1234", "ftp://ftp.site.com".
*/
attribute AString hostname;
pub unsafe fn SetHostname(&self, aHostname: &nsAString) -> nsresult
[src]
/**
* The hostname the login applies to.
*
* The hostname should be formatted as an URL. For example,
* "https://site.com", "http://site.com:1234", "ftp://ftp.site.com".
*/
attribute AString hostname;
pub unsafe fn GetFormSubmitURL(
&self,
aFormSubmitURL: &mut nsAString
) -> nsresult
[src]
&self,
aFormSubmitURL: &mut nsAString
) -> nsresult
/**
* The URL a form-based login was submitted to.
*
* For logins obtained from HTML forms, this field is the |action|
* attribute from the |form| element, with the path removed. For
* example "http://www.site.com". [Forms with no |action| attribute
* default to submitting to their origin URL, so we store that.]
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is NULL.
*/
attribute AString formSubmitURL;
pub unsafe fn SetFormSubmitURL(&self, aFormSubmitURL: &nsAString) -> nsresult
[src]
/**
* The URL a form-based login was submitted to.
*
* For logins obtained from HTML forms, this field is the |action|
* attribute from the |form| element, with the path removed. For
* example "http://www.site.com". [Forms with no |action| attribute
* default to submitting to their origin URL, so we store that.]
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is NULL.
*/
attribute AString formSubmitURL;
pub unsafe fn GetHttpRealm(&self, aHttpRealm: &mut nsAString) -> nsresult
[src]
/**
* The HTTP Realm a login was requested for.
*
* When an HTTP server sends a 401 result, the WWW-Authenticate
* header includes a realm to identify the "protection space." See
* RFC2617. If the response sent has a missing or blank realm, the
* hostname is used instead.
*
* For logins obtained from HTML forms, this field is NULL.
*/
attribute AString httpRealm;
pub unsafe fn SetHttpRealm(&self, aHttpRealm: &nsAString) -> nsresult
[src]
/**
* The HTTP Realm a login was requested for.
*
* When an HTTP server sends a 401 result, the WWW-Authenticate
* header includes a realm to identify the "protection space." See
* RFC2617. If the response sent has a missing or blank realm, the
* hostname is used instead.
*
* For logins obtained from HTML forms, this field is NULL.
*/
attribute AString httpRealm;
pub unsafe fn GetUsername(&self, aUsername: &mut nsAString) -> nsresult
[src]
/**
* The username for the login.
*/
attribute AString username;
pub unsafe fn SetUsername(&self, aUsername: &nsAString) -> nsresult
[src]
/**
* The username for the login.
*/
attribute AString username;
pub unsafe fn GetUsernameField(
&self,
aUsernameField: &mut nsAString
) -> nsresult
[src]
&self,
aUsernameField: &mut nsAString
) -> nsresult
/**
* The |name| attribute for the username input field.
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is an empty string.
*/
attribute AString usernameField;
pub unsafe fn SetUsernameField(&self, aUsernameField: &nsAString) -> nsresult
[src]
/**
* The |name| attribute for the username input field.
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is an empty string.
*/
attribute AString usernameField;
pub unsafe fn GetPassword(&self, aPassword: &mut nsAString) -> nsresult
[src]
/**
* The password for the login.
*/
attribute AString password;
pub unsafe fn SetPassword(&self, aPassword: &nsAString) -> nsresult
[src]
/**
* The password for the login.
*/
attribute AString password;
pub unsafe fn GetPasswordField(
&self,
aPasswordField: &mut nsAString
) -> nsresult
[src]
&self,
aPasswordField: &mut nsAString
) -> nsresult
/**
* The |name| attribute for the password input field.
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is an empty string.
*/
attribute AString passwordField;
pub unsafe fn SetPasswordField(&self, aPasswordField: &nsAString) -> nsresult
[src]
/**
* The |name| attribute for the password input field.
*
* For logins obtained from a HTTP or FTP protocol authentication,
* this field is an empty string.
*/
attribute AString passwordField;
pub unsafe fn Init(
&self,
aHostname: &nsAString,
aFormSubmitURL: &nsAString,
aHttpRealm: &nsAString,
aUsername: &nsAString,
aPassword: &nsAString,
aUsernameField: &nsAString,
aPasswordField: &nsAString
) -> nsresult
[src]
&self,
aHostname: &nsAString,
aFormSubmitURL: &nsAString,
aHttpRealm: &nsAString,
aUsername: &nsAString,
aPassword: &nsAString,
aUsernameField: &nsAString,
aPasswordField: &nsAString
) -> nsresult
/**
* Initialize a newly created nsLoginInfo object.
*
* The arguments are the fields for the new object.
*/
void init (in AString aHostname, in AString aFormSubmitURL, in AString aHttpRealm, in AString aUsername, in AString aPassword, in AString aUsernameField, in AString aPasswordField);
pub unsafe fn Equals(
&self,
aLoginInfo: *const nsILoginInfo,
_retval: *mut bool
) -> nsresult
[src]
&self,
aLoginInfo: *const nsILoginInfo,
_retval: *mut bool
) -> nsresult
/**
* Test for strict equality with another nsILoginInfo object.
*
* @param aLoginInfo
* The other object to test.
*/
boolean equals (in nsILoginInfo aLoginInfo);
pub unsafe fn Matches(
&self,
aLoginInfo: *const nsILoginInfo,
ignorePassword: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aLoginInfo: *const nsILoginInfo,
ignorePassword: bool,
_retval: *mut bool
) -> nsresult
/**
* Test for loose equivalency with another nsILoginInfo object. The
* passwordField and usernameField values are ignored, and the password
* values may be optionally ignored. If one login's formSubmitURL is an
* empty string (but not null), it will be treated as a wildcard. [The
* blank value indicates the login was stored before bug 360493 was fixed.]
*
* @param aLoginInfo
* The other object to test.
* @param ignorePassword
* If true, ignore the password when checking for match.
*/
boolean matches (in nsILoginInfo aLoginInfo, in boolean ignorePassword);
pub unsafe fn Clone(&self, _retval: *mut *const nsILoginInfo) -> nsresult
[src]
/**
* Create an identical copy of the login, duplicating all of the login's
* nsILoginInfo and nsILoginMetaInfo properties.
*
* This allows code to be forwards-compatible, when additional properties
* are added to nsILoginMetaInfo (or nsILoginInfo) in the future.
*/
nsILoginInfo clone ();
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsILoginInfo
[src]
const IID: nsIID
IID: nsIID = nsID(3290136063, 27547, 17150, [183, 141, 17, 48, 81, 250, 203, 5])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsILoginInfo
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsILoginInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.