• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
BBHttpAuthHandler Class Reference

Represents a request for HTTP authentication. More...

Inherits BBHttpAuthHandlerImpl.

Description

Instances of this class are created by the BBWebView and passed to BBWebViewClient::onReceivedBBHttpAuthRequest. The host application must call either proceed or cancel to make authentication decision.

Public Member Functions

void cancel ()
 Instructs the BBWebView to cancel the authentication. More...
 
void proceed (String username, String password)
 Instructs the WebView to proceed with the authentication with the given credentials. More...
 
BBAuthScheme getAuthScheme ()
 Get authentication scheme of HTTP authentication request. More...
 

Member Function Documentation

◆ cancel()

void cancel ( )

Instructs the BBWebView to cancel the authentication.

Must be called by User's code to cancel the authentication request.

Refer to the equivalent method cancel in the API Guide on the developer.android.com site.

◆ proceed()

void proceed ( String  username,
String  password 
)

Instructs the WebView to proceed with the authentication with the given credentials.

Must be called by User's code to provide the authentication credentials.

Parameters
usernameThe User's name for the authentication
passwordThe User's password for the authentication

User name for NTLM case has to be in next format: "DOMAIN\USERNAME"

User name for Kerberos case has to be in next format: "USERNAME@DOMAIN"

Refer to the equivalent method proceed in the API Guide on the developer.android.com site.

◆ getAuthScheme()

BBAuthScheme getAuthScheme ( )

Get authentication scheme of HTTP authentication request.

Returns
AuthSchemes An enum constant which is the scheme name for HTTP authentication.