SecurityOrigin

class SecurityOrigin(pointer: <Error class: unknown class><<Error class: unknown class>>)

A security boundary for websites.

#WebKitSecurityOrigin is a representation of a security domain defined by websites. A security origin consists of a protocol, a hostname, and an optional port number.

Resources with the same security origin can generally access each other for client-side scripting or database access. When comparing origins, beware that if both protocol and host are null, the origins should not be treated as equal.

Since

2.16

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitSecurityOriginPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun getHost(): String?

Gets the hostname of @origin.

Link copied to clipboard
fun getPort(): <Error class: unknown class>

Gets the port of @origin.

Link copied to clipboard

Gets the protocol of @origin.

Link copied to clipboard

Atomically increments the reference count of @origin by one.

Link copied to clipboard

Gets a string representation of @origin.

Link copied to clipboard
fun unref()

Atomically decrements the reference count of @origin by one.