diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /security/manager/ssl/nsIClientAuthRememberService.idl | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/manager/ssl/nsIClientAuthRememberService.idl')
-rw-r--r-- | security/manager/ssl/nsIClientAuthRememberService.idl | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/security/manager/ssl/nsIClientAuthRememberService.idl b/security/manager/ssl/nsIClientAuthRememberService.idl new file mode 100644 index 0000000000..8797bae869 --- /dev/null +++ b/security/manager/ssl/nsIClientAuthRememberService.idl @@ -0,0 +1,65 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +%{ C++ +#include "mozilla/OriginAttributes.h" + +#define NS_CLIENTAUTHREMEMBERSERVICE_CONTRACTID "@mozilla.org/security/clientAuthRememberService;1" +%} + +interface nsIX509Cert; + +[ref] native const_OriginAttributesRef(const mozilla::OriginAttributes); + +[scriptable, uuid(e92825af-7e81-4b5c-b412-8e1dd36d14fe)] +interface nsIClientAuthRememberRecord : nsISupports +{ + readonly attribute ACString asciiHost; + readonly attribute ACString dbKey; + readonly attribute ACString entryKey; +}; + +[scriptable, uuid(1dbc6eb6-0972-4bdb-9dc4-acd0abf72369)] +interface nsIClientAuthRememberService : nsISupports +{ + + [must_use] + void forgetRememberedDecision(in ACString key); + + + [must_use] + Array<nsIClientAuthRememberRecord> getDecisions(); + + + [must_use, noscript] + void rememberDecision(in ACString aHostName, + in const_OriginAttributesRef aOriginAttributes, + in nsIX509Cert aClientCert); + + [implicit_jscontext] + void rememberDecisionScriptable(in ACString aHostName, + in jsval originAttributes, + in nsIX509Cert aClientCert); + + [must_use, noscript] + bool hasRememberedDecision(in ACString aHostName, + in const_OriginAttributesRef aOriginAttributes, + out ACString aCertDBKey); + + [implicit_jscontext] + bool hasRememberedDecisionScriptable(in ACString aHostName, + in jsval originAttributes, + out ACString aCertDBKey); + + [must_use] + void clearRememberedDecisions(); + + [implicit_jscontext] + void deleteDecisionsByHost(in ACString aHostName, + in jsval aOriginAttributes); +}; |