Android Open Source - exchange-android Exchange Config






From Project

Back to project page exchange-android.

License

The source code is released under:

MIT License

If you think the Android project exchange-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package edu.cmu.cylab.starslinger.exchange;
//from ww w .j ava  2  s .co  m
/*
 * The MIT License (MIT)
 * 
 * Copyright (c) 2010-2014 Carnegie Mellon University
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

/***
 * This static class is meant to hold user preferences and static data and
 * settings. The string resource should contain all localizable strings. The
 * strings stored here are programmatic and are not user facing.
 */
public class ExchangeConfig {

    public static final String HTTPURL_PREFIX = "https://";
    public static final String HTTPURL_SUFFIX = "";
    public static final int HTTPPORT = 80;
    public static final int VER_SHA3 = 0x01060000;
    public static final int VER_1536BIT_DH = 0x01080000;
    public static final int MIN_USERS = 2;
    public static final int MAX_USERS = 10;
    // public static final int MAX_USERS_CAPACITY = 63;
    public static final int AES_KEY_LEN = 256 / 8;
    public static final int AES_IV_LEN = 128 / 8;
    public static final int HASH_LEN = 256 / 8;
    public static final long MSSVR_TIMEOUT = 1000 * 60 * 2; // 2m
    public static final long MSSVR_EXCH_PROT_MAX = 1000 * 60 * 10;// 10m
    public static final int LONG_DELAY = 3500; // 3.5 seconds
    public static final int SHORT_DELAY = 2000; // 2 seconds
    public static final int MS_READ_PER_CHAR = 50; // 50 msrpc ~ 20 cps
    public static final String LOG_TAG = "SafeSlinger-Exchange";

    // internal interprocess communication...
    public static final class extra {
        public static final String DECOY1_HASH = "DecoyHash1";
        public static final String DECOY2_HASH = "DecoyHash2";
        public static final String FLAG_HASH = "FlagHash";
        public static final String GROUP_ID = "GroupId";
        public static final String MEMBER_DATA = "MemberData";
        public static final String MESSAGE = "Message";
        public static final String RANDOM_POS = "RandomPosition";
        public static final String REQUEST_CODE = "RequestCode";
        public static final String RESID_MSG = "ResIdMsg";
        public static final String RESID_TITLE = "ResIdTitle";
        public static final String USER_DATA = "UserData";
        public static final String USER_ID = "UserId";
        public static final String HOST_NAME = "HostName";
        public static final String NUM_USERS = "NumUsers";
    }

    public static int getMinVersionCode() {
        return VER_1536BIT_DH;
    }

}




Java Source Code List

edu.cmu.cylab.starslinger.exchange.BaseActivity.java
edu.cmu.cylab.starslinger.exchange.CheckedHttpClient.java
edu.cmu.cylab.starslinger.exchange.CheckedSSLSocketFactory.java
edu.cmu.cylab.starslinger.exchange.CheckedX509TrustManager.java
edu.cmu.cylab.starslinger.exchange.ConnectionEngine.java
edu.cmu.cylab.starslinger.exchange.CryptoAccess.java
edu.cmu.cylab.starslinger.exchange.ExchangeActivity.java
edu.cmu.cylab.starslinger.exchange.ExchangeConfig.java
edu.cmu.cylab.starslinger.exchange.ExchangeController.java
edu.cmu.cylab.starslinger.exchange.ExchangeException.java
edu.cmu.cylab.starslinger.exchange.GroupData.java
edu.cmu.cylab.starslinger.exchange.GroupingActivity.java
edu.cmu.cylab.starslinger.exchange.VerifyActivity.java
edu.cmu.cylab.starslinger.exchange.WebEngine.java
edu.cmu.cylab.starslinger.exchange.WordList.java
edu.cmu.cylab.starslinger.exchange.WordPair.java
fr.cryptohash.DigestEngine.java
fr.cryptohash.Digest.java
fr.cryptohash.HMAC.java
fr.cryptohash.Keccak224.java
fr.cryptohash.Keccak256.java
fr.cryptohash.Keccak384.java
fr.cryptohash.Keccak512.java
fr.cryptohash.KeccakCore.java
fr.cryptohash.package-info.java