/* 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.goanna.background.fxa; import java.util.Map; import org.mozilla.goanna.background.fxa.FxAccountClient10.RequestDelegate; import org.mozilla.goanna.background.fxa.FxAccountClient10.StatusResponse; import org.mozilla.goanna.background.fxa.FxAccountClient10.TwoKeys; import org.mozilla.goanna.background.fxa.FxAccountClient20.LoginResponse; import org.mozilla.goanna.sync.ExtendedJSONObject; public interface FxAccountClient { public void createAccountAndGetKeys(final byte[] emailUTF8, final PasswordStretcher passwordStretcher, final Map queryParameters, final RequestDelegate delegate); public void loginAndGetKeys(final byte[] emailUTF8, final PasswordStretcher passwordStretcher, final Map queryParameters, final RequestDelegate requestDelegate); public void status(byte[] sessionToken, RequestDelegate requestDelegate); public void keys(byte[] keyFetchToken, RequestDelegate requestDelegate); public void sign(byte[] sessionToken, ExtendedJSONObject publicKey, long certificateDurationInMilliseconds, RequestDelegate requestDelegate); public void resendCode(byte[] sessionToken, RequestDelegate delegate); public void resendUnlockCode(byte[] emailUTF8, RequestDelegate delegate); }