Interface FederatedCredentialManagementDialog
-
public interface FederatedCredentialManagementDialogRepresents an open dialog of the Federated Credential Management API.- See Also:
- https://fedidcg.github.io/FedCM/
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDIALOG_TYPE_ACCOUNT_LISTstatic java.lang.StringDIALOG_TYPE_AUTO_REAUTH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelDialog()Closes the dialog as if the user had clicked X.java.util.List<FederatedCredentialManagementAccount>getAccounts()Returns the accounts shown in the account chooser.java.lang.StringgetDialogType()Returns the type of the open dialog.java.lang.StringgetSubtitle()Returns the subtitle of the dialog or null if none.java.lang.StringgetTitle()Returns the title of the dialog.voidselectAccount(int index)Selects an account as if the user had clicked on it.
-
-
-
Field Detail
-
DIALOG_TYPE_ACCOUNT_LIST
static final java.lang.String DIALOG_TYPE_ACCOUNT_LIST
- See Also:
- Constant Field Values
-
DIALOG_TYPE_AUTO_REAUTH
static final java.lang.String DIALOG_TYPE_AUTO_REAUTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
cancelDialog
void cancelDialog()
Closes the dialog as if the user had clicked X.
-
selectAccount
void selectAccount(int index)
Selects an account as if the user had clicked on it.- Parameters:
index- The index of the account to select from the list returned by getAccounts().
-
getDialogType
java.lang.String getDialogType()
Returns the type of the open dialog.One of DIALOG_TYPE_ACCOUNT_LIST and DIALOG_TYPE_AUTO_REAUTH.
-
getTitle
java.lang.String getTitle()
Returns the title of the dialog.
-
getSubtitle
java.lang.String getSubtitle()
Returns the subtitle of the dialog or null if none.
-
getAccounts
java.util.List<FederatedCredentialManagementAccount> getAccounts()
Returns the accounts shown in the account chooser.If this is an auto reauth dialog, returns the single account that is being signed in.
-
-