1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
10 #include
"mozilla/OriginAttributes.h"
12 #define NS_CLIENTAUTHREMEMBERSERVICE_CONTRACTID
"@mozilla.org/security/clientAuthRememberService;1"
15 interface nsIX509Cert
;
17 [ref] native const_OriginAttributesRef
(const mozilla
::OriginAttributes
);
19 [scriptable
, uuid(e92825af
-7e81
-4b5c
-b412
-8e1dd36d14fe
)]
20 interface nsIClientAuthRememberRecord
: nsISupports
22 readonly attribute ACString asciiHost
;
23 readonly attribute ACString dbKey
;
24 readonly attribute ACString entryKey
;
27 [scriptable
, uuid(1dbc6eb6
-0972-4bdb
-9dc4
-acd0abf72369
)]
28 interface nsIClientAuthRememberService
: nsISupports
32 void forgetRememberedDecision
(in ACString key
);
36 Array
<nsIClientAuthRememberRecord
> getDecisions
();
40 void rememberDecision
(in ACString aHostName
,
41 in const_OriginAttributesRef aOriginAttributes
,
42 in nsIX509Cert aClientCert
);
45 void rememberDecisionScriptable
(in ACString aHostName
,
46 in jsval originAttributes
,
47 in nsIX509Cert aClientCert
);
50 boolean hasRememberedDecision
(in ACString aHostName
,
51 in const_OriginAttributesRef aOriginAttributes
,
52 out ACString aCertDBKey
);
55 boolean hasRememberedDecisionScriptable
(in ACString aHostName
,
56 in jsval originAttributes
,
57 out ACString aCertDBKey
);
60 void clearRememberedDecisions
();
63 void deleteDecisionsByHost
(in ACString aHostName
,
64 in jsval aOriginAttributes
);