Package-level declarations

Types

Link copied to clipboard

The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.

Link copied to clipboard
typealias CertificateId = Int

An internal certificate ID value.

Official doc

Link copied to clipboard
@Serializable
data class CertificateSecurityState(val protocol: String, val keyExchange: String, val keyExchangeGroup: String? = null, val cipher: String, val mac: String? = null, val certificate: List<String>, val subjectName: String, val issuer: String, val validFrom: TimeSinceEpoch, val validTo: TimeSinceEpoch, val certificateNetworkError: String? = null, val certificateHasWeakSignature: Boolean, val certificateHasSha1Signature: Boolean, val modernSSL: Boolean, val obsoleteSslProtocol: Boolean, val obsoleteSslKeyExchange: Boolean, val obsoleteSslCipher: Boolean, val obsoleteSslSignature: Boolean)

Details about the security state of the page certificate.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the SecurityDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the SecurityDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class HandleCertificateErrorRequest(val eventId: Int, val action: CertificateErrorAction)

Request object containing input parameters for the SecurityDomain.handleCertificateError command.

Link copied to clipboard
@Serializable
object HandleCertificateErrorResponse

A dummy response object for the SecurityDomain.handleCertificateError command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class InsecureContentStatus(val ranMixedContent: Boolean, val displayedMixedContent: Boolean, val containedMixedForm: Boolean, val ranContentWithCertErrors: Boolean, val displayedContentWithCertErrors: Boolean, val ranInsecureContentStyle: SecurityState, val displayedInsecureContentStyle: SecurityState)

Information about insecure content on the page.

Link copied to clipboard
@Serializable
enum MixedContentType : Enum<MixedContentType>

A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories

Link copied to clipboard
@Serializable
data class SafetyTipInfo(val safetyTipStatus: SafetyTipStatus, val safeUrl: String? = null)
Link copied to clipboard
Link copied to clipboard

Security

Link copied to clipboard
@Serializable
enum SecurityState : Enum<SecurityState>

The security level of a page or resource.

Link copied to clipboard
@Serializable
data class SecurityStateExplanation(val securityState: SecurityState, val title: String, val summary: String, val description: String, val mixedContentType: MixedContentType, val certificate: List<String>, val recommendations: List<String>? = null)

An explanation of an factor contributing to the security state.

Link copied to clipboard
@Serializable
data class SetIgnoreCertificateErrorsRequest(val ignore: Boolean)

Request object containing input parameters for the SecurityDomain.setIgnoreCertificateErrors command.

Link copied to clipboard

A dummy response object for the SecurityDomain.setIgnoreCertificateErrors command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetOverrideCertificateErrorsRequest(val override: Boolean)

Request object containing input parameters for the SecurityDomain.setOverrideCertificateErrors command.

Link copied to clipboard

A dummy response object for the SecurityDomain.setOverrideCertificateErrors command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class VisibleSecurityState(val securityState: SecurityState, val certificateSecurityState: CertificateSecurityState? = null, val safetyTipInfo: SafetyTipInfo? = null, val securityStateIssueIds: List<String>)

Security state information about the page.