2013-09-13 14:52:27 -07:00
|
|
|
#filter substitution
|
|
|
|
/* 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.fxa;
|
|
|
|
|
2014-01-16 18:35:08 -08:00
|
|
|
import org.mozilla.gecko.background.common.log.Logger;
|
|
|
|
|
2013-09-13 14:52:27 -07:00
|
|
|
public class FxAccountConstants {
|
|
|
|
public static final String GLOBAL_LOG_TAG = "FxAccounts";
|
|
|
|
public static final String ACCOUNT_TYPE = "@MOZ_ANDROID_SHARED_FXACCOUNT_TYPE@";
|
2013-12-17 15:13:43 -08:00
|
|
|
|
2014-01-23 20:40:12 -08:00
|
|
|
public static final String DEFAULT_IDP_ENDPOINT = "https://api-accounts.dev.lcip.org";
|
|
|
|
public static final String DEFAULT_TOKEN_SERVER_ENDPOINT = "https://token.dev.lcip.org";
|
2014-01-21 21:31:02 -08:00
|
|
|
public static final String DEFAULT_TOKEN_SERVER_URI = DEFAULT_TOKEN_SERVER_ENDPOINT +
|
2014-01-23 20:40:12 -08:00
|
|
|
(DEFAULT_TOKEN_SERVER_ENDPOINT.endsWith("/") ? "" : "/") + "1.0/sync/1.5";
|
2014-01-16 18:35:08 -08:00
|
|
|
|
|
|
|
// For extra debugging. Not final so it can be changed from Fennec, or from
|
|
|
|
// an add-on.
|
|
|
|
public static boolean LOG_PERSONAL_INFORMATION = true;
|
|
|
|
|
|
|
|
public static void pii(String tag, String message) {
|
|
|
|
if (LOG_PERSONAL_INFORMATION) {
|
|
|
|
Logger.info(tag, "$$FxA PII$$: " + message);
|
|
|
|
}
|
|
|
|
}
|
2014-01-20 21:26:53 -08:00
|
|
|
|
|
|
|
// You must be at least 14 years old to create a Firefox Account.
|
|
|
|
public static final int MINIMUM_AGE_TO_CREATE_AN_ACCOUNT = 14;
|
|
|
|
|
|
|
|
// You must wait 15 minutes after failing an age check before trying to create a different account.
|
|
|
|
public static final long MINIMUM_TIME_TO_WAIT_AFTER_AGE_CHECK_FAILED_IN_MILLISECONDS = 15 * 60 * 1000;
|
2013-09-13 14:52:27 -07:00
|
|
|
}
|