mobile/android/base/fxa/authenticator/FxAccountLoginDelegate.java

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     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 }

mercurial