chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.security / SecurityDomain

SecurityDomain

class SecurityDomain

Security

Official doc

Functions

certificateError

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.

fun certificateError(): Flow<CertificateErrorEvent>

disable

Disables tracking security state changes.

suspend fun disable(): Unit

enable

Enables tracking security state changes.

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<SecurityEvent>

handleCertificateError

Handles a certificate error that fired a certificateError event.

suspend fun handleCertificateError(input: HandleCertificateErrorRequest): Unit

securityStateChanged

The security state of the page changed.

fun securityStateChanged(): Flow<SecurityStateChangedEvent>

setIgnoreCertificateErrors

Enable/disable whether all certificate errors should be ignored.

suspend fun setIgnoreCertificateErrors(input: SetIgnoreCertificateErrorsRequest): Unit

setOverrideCertificateErrors

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.

suspend fun setOverrideCertificateErrors(input: SetOverrideCertificateErrorsRequest): Unit

visibleSecurityStateChanged

The security state of the page changed.

fun visibleSecurityStateChanged(): Flow<VisibleSecurityStateChangedEvent>