SecureContextType

@Serializable(with = SecureContextTypeSerializer::class)
sealed interface SecureContextType

Indicates whether the frame is a secure context and why it is the case.

Official doc

Inheritors

Types

Link copied to clipboard
@Serializable(with = SecureContextTypeSerializer::class)
data object InsecureAncestor : SecureContextType
Link copied to clipboard
@Serializable(with = SecureContextTypeSerializer::class)
data object InsecureScheme : SecureContextType
Link copied to clipboard
@Serializable(with = SecureContextTypeSerializer::class)
data class NotDefinedInProtocol(val value: String) : SecureContextType

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard
@Serializable(with = SecureContextTypeSerializer::class)
data object Secure : SecureContextType
Link copied to clipboard
@Serializable(with = SecureContextTypeSerializer::class)
data object SecureLocalhost : SecureContextType