Struct xpcom::interfaces::nsISiteSecurityService [] [src]

#[repr(C)]
pub struct nsISiteSecurityService { /* fields omitted */ }

interface nsISiteSecurityService : nsISupports

Methods

impl nsISiteSecurityService
[src]

[src]

Cast this nsISiteSecurityService to one of its base interfaces.

impl nsISiteSecurityService
[src]

HEADER_HSTS: i64 = 0

HEADER_HPKP: i64 = 1

HEADER_OMS: i64 = 2

Success: i64 = 0

ERROR_UNKNOWN: i64 = 1

ERROR_UNTRUSTWORTHY_CONNECTION: i64 = 2

ERROR_COULD_NOT_PARSE_HEADER: i64 = 3

ERROR_NO_MAX_AGE: i64 = 4

ERROR_MULTIPLE_MAX_AGES: i64 = 5

ERROR_INVALID_MAX_AGE: i64 = 6

ERROR_MULTIPLE_INCLUDE_SUBDOMAINS: i64 = 7

ERROR_INVALID_INCLUDE_SUBDOMAINS: i64 = 8

ERROR_INVALID_PIN: i64 = 9

ERROR_MULTIPLE_REPORT_URIS: i64 = 10

ERROR_PINSET_DOES_NOT_MATCH_CHAIN: i64 = 11

ERROR_NO_BACKUP_PIN: i64 = 12

ERROR_COULD_NOT_SAVE_STATE: i64 = 13

ERROR_ROOT_NOT_BUILT_IN: i64 = 14

SOURCE_UNKNOWN: i64 = 0
/**
     * nsISiteSecurityService::IsSecureURI can optionally return a flag
     * indicating the source of the HSTS cache entry, if it comes from the
     * preload list, was seen naturally, or is a result of HSTS priming.
     */

SOURCE_PRELOAD_LIST: i64 = 1

SOURCE_ORGANIC_REQUEST: i64 = 2

SOURCE_HSTS_PRIMING: i64 = 3

[src]

/**
     * Removes all non-preloaded security state by resetting to factory-original
     * settings.
     */

[must_use] void clearAll ();

[src]

/**
     * Removes all preloaded security state.
     */

[must_use] void clearPreloads ();

[src]

/**
     * Set an HSTS preload entry for a host. The resulting entries will be
     * permanent and visible from private and non-private contexts. These
     * entries replace any already set by this mechanism or those built-in to
     * Gecko.
     *
     * @param aHost the hostname (punycode) that the entry applies to
     * @param aIncludeSubdomains whether this entry also applies to subdomains
     * @param aExpires the time this entry should expire (millis since epoch)
     */

[must_use] boolean setHSTSPreload (in ACString aHost, in boolean aIncludesSubdomains, in int64_t aExpires);

[src]

/**
     * Returns an enumerator of the nsISiteSecurityService storage. Each item in
     * the enumeration is a nsISiteSecurityState that can be QueryInterfaced to
     * the appropriate nsISiteHSTSState or nsISiteHPKPState, depending on the
     * provided type. Doesn't include preloaded entries (either the hard-coded
     * ones or the preloaded-delivered-by-kinto ones).
     *
     * @param aType the type of security state in question.
     */

[must_use] nsISimpleEnumerator enumerate (in uint32_t aType);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsISiteSecurityService
[src]

IID: nsIID = nsID(659630072, 56279, 18049, [175, 191, 109, 240, 198, 88, 122, 1])

[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 nsISiteSecurityService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISiteSecurityService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.