public class CredentialsDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
CredentialsDialog.Callback |
Constructor and Description |
---|
CredentialsDialog() |
Modifier and Type | Method and Description |
---|---|
static void |
createCredentialDialog(java.lang.String desc,
java.lang.String connectString,
java.lang.String usernameString,
java.lang.String passwordString,
java.lang.String cacheCreds,
java.lang.Long expiration,
android.content.Context context,
CredentialsDialog.Callback callback)
Create a prompt to ask the user to enter missing credentials for a connection
if user approves, will prompt for username and password
|
public static void createCredentialDialog(java.lang.String desc, java.lang.String connectString, java.lang.String usernameString, java.lang.String passwordString, java.lang.String cacheCreds, java.lang.Long expiration, android.content.Context context, CredentialsDialog.Callback callback)
desc
- Human readable description of the connection - ie the nameconnectString
- Connection info for the connection so that it can be updatedusernameString
- Username string stored in prefs (if available)passwordString
- Password string stored in prefs (if available)cacheCreds
- context
- the context used to display the alert dialog.callback
- the callback for when the credential dialog is dismissed.