Interface nsICertOverrideServiceType

Hierarchy

Properties

securityCheckDisabled: boolean

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Remove all overrides.

    Returns void

  • Parameters

    • aHostName: string
    • aPort: int32_t
    • aOriginAttributes: any

    Returns void

  • Remove a override for the given hostname:port.

    Parameters

    • aHostName: string

      The host (punycode) whose entry should be cleared.

    • aPort: int32_t

      The port whose entry should be cleared. If it is -1, then it is internaly treated as 443. If it is 0 and aHostName is "all:temporary-certificates", then all temporary certificates should be cleared.

    • aOriginAttributes: const_OriginAttributesRef

    Returns void

  • Parameters

    • aHostName: string
    • aPort: int32_t
    • aOriginAttributes: any
    • aCert: nsIX509Cert
    • aIsTemporary: boolean

    Returns boolean

  • Return whether this host, port, cert triple has a stored override. If so, the outparams will contain the specific errors that were overridden, and whether the override is permanent, or only for the current session.

    Returns

    Whether an override has been stored for this host+port+cert

    Parameters

    • aHostName: string

      The host (punycode) this mapping belongs to

    • aPort: int32_t

      The port this mapping belongs to, if it is -1 then it is internally treated as 443

    • aOriginAttributes: const_OriginAttributesRef
    • aCert: nsIX509Cert

      The certificate this mapping belongs to

    • aIsTemporary: boolean

      Whether the stored override is session-only, or permanent

    Returns boolean

  • Parameters

    • aHostName: string
    • aPort: int32_t
    • aOriginAttributes: any
    • aCert: nsIX509Cert
    • aTemporary: boolean

    Returns void

  • When making a TLS connection to the given hostname and port (in the context of the given origin attributes), if the certificate verifier encounters an overridable error when verifying the given certificate, the connection will continue (provided overrides are allowed for that host).

    Parameters

    • aHostName: string

      The host (punycode) this mapping belongs to

    • aPort: int32_t

      The port this mapping belongs to. If it is -1 then it is internaly treated as 443.

    • aOriginAttributes: const_OriginAttributesRef

      the origin attributes of the mapping

    • aCert: nsIX509Cert

      The certificate used by the server

    • aTemporary: boolean

      Whether or not to only store the mapping for the session

    Returns void

  • NOTE: This function is used only for testing!

    Parameters

    • aDisable: boolean

      If true, disable all security check and make hasMatchingOverride always return true.

    Returns void

Generated using TypeDoc