android-components / mozilla.components.browser.state.state / SecurityInfoState

SecurityInfoState

data class SecurityInfoState (source)

A value type holding security information for a Session.

Constructors

Name Summary
<init> SecurityInfoState(secure: Boolean = false, host: String = "", issuer: String = "")
A value type holding security information for a Session.

Properties

Name Summary
host val host: String
domain for which the SSL certificate was issued.
issuer val issuer: String
name of the certificate authority who issued the SSL certificate.
secure val secure: Boolean
true if the tab is currently pointed to a URL with a valid SSL certificate, otherwise false.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.