android-components / mozilla.components.concept.engine.prompt / PromptRequest / Authentication

Authentication

data class Authentication : PromptRequest, Dismissible (source)

Value type that represents a request for an authentication prompt. For more related info take a look at <a href=”https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication>MDN docs

Types

Name Summary
Level enum class Level
Method enum class Method

Constructors

Name Summary
<init> Authentication(title: String, message: String, userName: String, password: String, method: Method, level: Level, onlyShowPassword: Boolean = false, previousFailed: Boolean = false, isCrossOrigin: Boolean = false, onConfirm: (String, String) -> Unit, onDismiss: () -> Unit)
Value type that represents a request for an authentication prompt. For more related info take a look at <a href=”https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication>MDN docs

Properties

Name Summary
isCrossOrigin val isCrossOrigin: Boolean
indicates if this request is from a cross-origin sub-resource.
level val level: Level
indicates the level of security of the authentication like Level.NONE, Level.SECURED and Level.PASSWORD_ENCRYPTED.
message val message: String
the body of the dialog.
method val method: Method
type of authentication, valid values Method.HOST and Method.PROXY.
onConfirm val onConfirm: (String, String) -> Unit
callback to indicate the user want to start the authentication flow.
onDismiss val onDismiss: () -> Unit
callback to indicate the user dismissed this request.
onlyShowPassword val onlyShowPassword: Boolean
indicates if the dialog should only include a password field.
password val password: String
default value provide for this session.
previousFailed val previousFailed: Boolean
indicates if this request is the result of a previous failed attempt to login.
title val title: String
of the dialog.
userName val userName: String
default value provide for this session.