pl.wendigo.chrome.api.security / SecurityOperations

SecurityOperations

class SecurityOperations (source)

Security

Link
Protocol Security domain documentation.

Functions

certificateError

fun certificateError(): Flowable<CertificateErrorEvent>

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.

disable

fun disable(): Single<ResponseFrame>

Disables tracking security state changes.

enable

fun enable(): Single<ResponseFrame>

Enables tracking security state changes.

events

fun events(): Flowable<Event>

Returns flowable capturing all Security domains events.

handleCertificateError

fun handleCertificateError(input: HandleCertificateErrorRequest): Single<ResponseFrame>

Handles a certificate error that fired a certificateError event.

securityStateChanged

fun securityStateChanged(): Flowable<SecurityStateChangedEvent>

The security state of the page changed.

setIgnoreCertificateErrors

fun setIgnoreCertificateErrors(input: SetIgnoreCertificateErrorsRequest): Single<ResponseFrame>

Enable/disable whether all certificate errors should be ignored.

setOverrideCertificateErrors

fun setOverrideCertificateErrors(input: SetOverrideCertificateErrorsRequest): Single<ResponseFrame>

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.

visibleSecurityStateChanged

fun visibleSecurityStateChanged(): Flowable<VisibleSecurityStateChangedEvent>

The security state of the page changed.