Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / nsIClientAuthRememberService.idl
blobcb4f25e16650f13ff3ce1b2e8585cb65f20439ee
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"
9 %{ C++
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
31 [must_use]
32 void forgetRememberedDecision(in ACString key);
35 [must_use]
36 Array<nsIClientAuthRememberRecord> getDecisions();
39 [must_use, noscript]
40 void rememberDecision(in ACString aHostName,
41 in const_OriginAttributesRef aOriginAttributes,
42 in nsIX509Cert aClientCert);
44 [implicit_jscontext]
45 void rememberDecisionScriptable(in ACString aHostName,
46 in jsval originAttributes,
47 in nsIX509Cert aClientCert);
49 [must_use, noscript]
50 boolean hasRememberedDecision(in ACString aHostName,
51 in const_OriginAttributesRef aOriginAttributes,
52 out ACString aCertDBKey);
54 [implicit_jscontext]
55 boolean hasRememberedDecisionScriptable(in ACString aHostName,
56 in jsval originAttributes,
57 out ACString aCertDBKey);
59 [must_use]
60 void clearRememberedDecisions();
62 [implicit_jscontext]
63 void deleteDecisionsByHost(in ACString aHostName,
64 in jsval aOriginAttributes);