security
CertificateError
dataclass
There is a certificate error. If overriding certificate errors is enabled, then it should be
handled with the handleCertificateError
command. Note: this event does not fire if the
certificate error has been allowed internally. Only one client per target should override
certificate errors at the same time.
Source code in zendriver/cdp/security.py
error_type: str
instance-attribute
event_id: int
instance-attribute
request_url: str
instance-attribute
__init__(event_id, error_type, request_url)
CertificateErrorAction
Bases: Enum
The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.
Source code in zendriver/cdp/security.py
CANCEL = 'cancel'
class-attribute
instance-attribute
CONTINUE = 'continue'
class-attribute
instance-attribute
from_json(json)
classmethod
CertificateId
Bases: int
An internal certificate ID value.
Source code in zendriver/cdp/security.py
__repr__()
from_json(json)
classmethod
CertificateSecurityState
dataclass
Details about the security state of the page certificate.
Source code in zendriver/cdp/security.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
|
certificate: typing.List[str]
instance-attribute
certificate_has_sha1_signature: bool
instance-attribute
certificate_has_weak_signature: bool
instance-attribute
certificate_network_error: typing.Optional[str] = None
class-attribute
instance-attribute
cipher: str
instance-attribute
issuer: str
instance-attribute
key_exchange: str
instance-attribute
key_exchange_group: typing.Optional[str] = None
class-attribute
instance-attribute
mac: typing.Optional[str] = None
class-attribute
instance-attribute
modern_ssl: bool
instance-attribute
obsolete_ssl_cipher: bool
instance-attribute
obsolete_ssl_key_exchange: bool
instance-attribute
obsolete_ssl_protocol: bool
instance-attribute
obsolete_ssl_signature: bool
instance-attribute
protocol: str
instance-attribute
subject_name: str
instance-attribute
valid_from: network.TimeSinceEpoch
instance-attribute
valid_to: network.TimeSinceEpoch
instance-attribute
__init__(protocol, key_exchange, cipher, certificate, subject_name, issuer, valid_from, valid_to, certificate_has_weak_signature, certificate_has_sha1_signature, modern_ssl, obsolete_ssl_protocol, obsolete_ssl_key_exchange, obsolete_ssl_cipher, obsolete_ssl_signature, key_exchange_group=None, mac=None, certificate_network_error=None)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
to_json()
Source code in zendriver/cdp/security.py
InsecureContentStatus
dataclass
Information about insecure content on the page.
Source code in zendriver/cdp/security.py
contained_mixed_form: bool
instance-attribute
displayed_content_with_cert_errors: bool
instance-attribute
displayed_insecure_content_style: SecurityState
instance-attribute
displayed_mixed_content: bool
instance-attribute
ran_content_with_cert_errors: bool
instance-attribute
ran_insecure_content_style: SecurityState
instance-attribute
ran_mixed_content: bool
instance-attribute
__init__(ran_mixed_content, displayed_mixed_content, contained_mixed_form, ran_content_with_cert_errors, displayed_content_with_cert_errors, ran_insecure_content_style, displayed_insecure_content_style)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
to_json()
Source code in zendriver/cdp/security.py
MixedContentType
Bases: Enum
A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories
Source code in zendriver/cdp/security.py
BLOCKABLE = 'blockable'
class-attribute
instance-attribute
NONE = 'none'
class-attribute
instance-attribute
OPTIONALLY_BLOCKABLE = 'optionally-blockable'
class-attribute
instance-attribute
from_json(json)
classmethod
SafetyTipInfo
dataclass
Source code in zendriver/cdp/security.py
safe_url: typing.Optional[str] = None
class-attribute
instance-attribute
safety_tip_status: SafetyTipStatus
instance-attribute
__init__(safety_tip_status, safe_url=None)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
SafetyTipStatus
Bases: Enum
Source code in zendriver/cdp/security.py
BAD_REPUTATION = 'badReputation'
class-attribute
instance-attribute
LOOKALIKE = 'lookalike'
class-attribute
instance-attribute
from_json(json)
classmethod
SecurityState
Bases: Enum
The security level of a page or resource.
Source code in zendriver/cdp/security.py
INFO = 'info'
class-attribute
instance-attribute
INSECURE = 'insecure'
class-attribute
instance-attribute
INSECURE_BROKEN = 'insecure-broken'
class-attribute
instance-attribute
NEUTRAL = 'neutral'
class-attribute
instance-attribute
SECURE = 'secure'
class-attribute
instance-attribute
UNKNOWN = 'unknown'
class-attribute
instance-attribute
from_json(json)
classmethod
SecurityStateChanged
dataclass
The security state of the page changed. No longer being sent.
Source code in zendriver/cdp/security.py
explanations: typing.List[SecurityStateExplanation]
instance-attribute
insecure_content_status: InsecureContentStatus
instance-attribute
scheme_is_cryptographic: bool
instance-attribute
security_state: SecurityState
instance-attribute
summary: typing.Optional[str]
instance-attribute
__init__(security_state, scheme_is_cryptographic, explanations, insecure_content_status, summary)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
SecurityStateExplanation
dataclass
An explanation of an factor contributing to the security state.
Source code in zendriver/cdp/security.py
certificate: typing.List[str]
instance-attribute
description: str
instance-attribute
mixed_content_type: MixedContentType
instance-attribute
recommendations: typing.Optional[typing.List[str]] = None
class-attribute
instance-attribute
security_state: SecurityState
instance-attribute
summary: str
instance-attribute
title: str
instance-attribute
__init__(security_state, title, summary, description, mixed_content_type, certificate, recommendations=None)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
to_json()
Source code in zendriver/cdp/security.py
VisibleSecurityState
dataclass
Security state information about the page.
Source code in zendriver/cdp/security.py
certificate_security_state: typing.Optional[CertificateSecurityState] = None
class-attribute
instance-attribute
safety_tip_info: typing.Optional[SafetyTipInfo] = None
class-attribute
instance-attribute
security_state: SecurityState
instance-attribute
security_state_issue_ids: typing.List[str]
instance-attribute
__init__(security_state, security_state_issue_ids, certificate_security_state=None, safety_tip_info=None)
from_json(json)
classmethod
Source code in zendriver/cdp/security.py
to_json()
Source code in zendriver/cdp/security.py
VisibleSecurityStateChanged
dataclass
EXPERIMENTAL
The security state of the page changed.
Source code in zendriver/cdp/security.py
visible_security_state: VisibleSecurityState
instance-attribute
__init__(visible_security_state)
disable()
Disables tracking security state changes.
enable()
Enables tracking security state changes.
handle_certificate_error(event_id, action)
Handles a certificate error that fired a certificateError event.
.. deprecated:: 1.3
Parameters:
Name | Type | Description | Default |
---|---|---|---|
event_id
|
int
|
The ID of the event. |
required |
action
|
CertificateErrorAction
|
The action to take on the certificate error. |
required |
Source code in zendriver/cdp/security.py
set_ignore_certificate_errors(ignore)
Enable/disable whether all certificate errors should be ignored.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ignore
|
bool
|
If true, all certificate errors will be ignored. |
required |
Source code in zendriver/cdp/security.py
set_override_certificate_errors(override)
Enable/disable overriding certificate errors. If enabled, all certificate error events need to
be handled by the DevTools client and should be answered with handleCertificateError
commands.
.. deprecated:: 1.3
Parameters:
Name | Type | Description | Default |
---|---|---|---|
override
|
bool
|
If true, certificate errors will be overridden. |
required |