2013-11-13 15:27:13 -08:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
package org.mozilla.gecko.background.fxa;
|
|
|
|
|
2014-01-16 18:35:08 -08:00
|
|
|
import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
|
|
|
|
import org.mozilla.gecko.background.fxa.FxAccountClient10.StatusResponse;
|
|
|
|
import org.mozilla.gecko.background.fxa.FxAccountClient10.TwoKeys;
|
|
|
|
import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse;
|
2013-11-13 15:27:13 -08:00
|
|
|
import org.mozilla.gecko.sync.ExtendedJSONObject;
|
|
|
|
|
2014-01-16 18:35:08 -08:00
|
|
|
public interface FxAccountClient {
|
|
|
|
public void loginAndGetKeys(final byte[] emailUTF8, final byte[] quickStretchedPW, final RequestDelegate<LoginResponse> requestDelegate);
|
|
|
|
public void status(byte[] sessionToken, RequestDelegate<StatusResponse> requestDelegate);
|
|
|
|
public void keys(byte[] keyFetchToken, RequestDelegate<TwoKeys> requestDelegate);
|
|
|
|
public void sign(byte[] sessionToken, ExtendedJSONObject publicKey, long certificateDurationInMilliseconds, RequestDelegate<String> requestDelegate);
|
2013-11-13 15:27:13 -08:00
|
|
|
}
|