Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 package org.mozilla.gecko.fxa.authenticator;
7 /**
8 * Abstraction around things that might need to be signalled to the user via UI,
9 * such as:
10 * <ul>
11 * <li>account not yet verified;</li>
12 * <li>account password needs to be updated;</li>
13 * <li>account key management required or changed;</li>
14 * <li>auth protocol has changed and Firefox needs to be upgraded;</li>
15 * </ul>
16 * etc.
17 * <p>
18 * Consumers of this code should differentiate error classes based on the types
19 * of the exceptions thrown. Exceptions that do not have special meaning are of
20 * type <code>FxAccountLoginException</code> with an appropriate
21 * <code>cause</code> inner exception.
22 */
23 public interface FxAccountLoginDelegate {
24 public void handleError(FxAccountLoginException e);
25 public void handleSuccess(String assertion);
26 }