michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.background.fxa; michael@0: michael@0: import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate; michael@0: import org.mozilla.gecko.background.fxa.FxAccountClient10.StatusResponse; michael@0: import org.mozilla.gecko.background.fxa.FxAccountClient10.TwoKeys; michael@0: import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse; michael@0: import org.mozilla.gecko.sync.ExtendedJSONObject; michael@0: michael@0: public interface FxAccountClient { michael@0: public void createAccountAndGetKeys(final byte[] emailUTF8, final PasswordStretcher passwordStretcher, final RequestDelegate delegate); michael@0: public void loginAndGetKeys(final byte[] emailUTF8, final PasswordStretcher passwordStretcher, final RequestDelegate requestDelegate); michael@0: public void status(byte[] sessionToken, RequestDelegate requestDelegate); michael@0: public void keys(byte[] keyFetchToken, RequestDelegate requestDelegate); michael@0: public void sign(byte[] sessionToken, ExtendedJSONObject publicKey, long certificateDurationInMilliseconds, RequestDelegate requestDelegate); michael@0: public void resendCode(byte[] sessionToken, RequestDelegate delegate); michael@0: }