1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsAuthInformationHolder.h"
7 NS_IMPL_ISUPPORTS(nsAuthInformationHolder
, nsIAuthInformation
)
10 nsAuthInformationHolder::GetFlags(uint32_t* aFlags
) {
16 nsAuthInformationHolder::GetRealm(nsAString
& aRealm
) {
22 nsAuthInformationHolder::GetAuthenticationScheme(nsACString
& aScheme
) {
28 nsAuthInformationHolder::GetUsername(nsAString
& aUserName
) {
34 nsAuthInformationHolder::SetUsername(const nsAString
& aUserName
) {
35 if (!(mFlags
& ONLY_PASSWORD
)) mUser
= aUserName
;
40 nsAuthInformationHolder::GetPassword(nsAString
& aPassword
) {
41 aPassword
= mPassword
;
46 nsAuthInformationHolder::SetPassword(const nsAString
& aPassword
) {
47 mPassword
= aPassword
;
52 nsAuthInformationHolder::GetDomain(nsAString
& aDomain
) {
58 nsAuthInformationHolder::SetDomain(const nsAString
& aDomain
) {
59 if (mFlags
& NEED_DOMAIN
) mDomain
= aDomain
;