• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AndroidConceal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.facebook.android.crypto.keychain.AndroidConceal的典型用法代码示例。如果您正苦于以下问题:Java AndroidConceal类的具体用法?Java AndroidConceal怎么用?Java AndroidConceal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AndroidConceal类属于com.facebook.android.crypto.keychain包,在下文中一共展示了AndroidConceal类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: create

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public ConcealCrypto create(){

            if (this.context == null){
                throw new RuntimeException("Context cannot be null");
            }

            mEntityPassword = Entity.create(CipherUtils.obscureEncodeSixFourString(mEntityPasswordRaw.getBytes()));
            makeKeyChain = new SharedPrefsBackedKeyChain(this.context.get(),(mKeyChain==null)?CryptoConfig.KEY_256:mKeyChain);

            if (mKeyChain == null) {
                crypto = AndroidConceal.get().createDefaultCrypto(makeKeyChain);
            } else if (mKeyChain == CryptoConfig.KEY_128) {
                crypto = AndroidConceal.get().createCrypto128Bits(makeKeyChain);
            } else {
                crypto = AndroidConceal.get().createCrypto256Bits(makeKeyChain);
            }

            return new ConcealCrypto(this);
        }
 
开发者ID:afiqiqmal,项目名称:ConcealSharedPreference-Android,代码行数:20,代码来源:ConcealCrypto.java


示例2: setUp

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Before public void setUp() throws Exception {
  SoLoader.init(InstrumentationRegistry.getContext(), false);


  final SharedPreferences prefs =
      PreferenceManager.getDefaultSharedPreferences(InstrumentationRegistry.getContext());
  final Crypto crypto = AndroidConceal
      .get()
      .createDefaultCrypto(new SharedPrefsBackedKeyChain(
          InstrumentationRegistry.getContext(),
          CryptoConfig.KEY_256
      ));

  factory = new ConcealPreferenceFactory(crypto, prefs);
}
 
开发者ID:prolificinteractive,项目名称:Patrons,代码行数:16,代码来源:ConcealIntPreferenceTest.java


示例3: setUp

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Before public void setUp() throws Exception {
  SoLoader.init(InstrumentationRegistry.getContext(), false);

  prefs = PreferenceManager.getDefaultSharedPreferences(InstrumentationRegistry.getContext());
  crypto = AndroidConceal
      .get()
      .createDefaultCrypto(new SharedPrefsBackedKeyChain(
          InstrumentationRegistry.getContext(),
          CryptoConfig.KEY_256
      ));
}
 
开发者ID:prolificinteractive,项目名称:Patrons,代码行数:12,代码来源:ConcealFloatPreferenceTest.java


示例4: setUp

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Before public void setUp() throws Exception {
  final SharedPreferences prefs =
      PreferenceManager.getDefaultSharedPreferences(InstrumentationRegistry.getContext());
  final Crypto crypto = AndroidConceal
      .get()
      .createDefaultCrypto(new SharedPrefsBackedKeyChain(
          InstrumentationRegistry.getContext(),
          CryptoConfig.KEY_256
      ));

  factory = new ConcealPreferenceFactory(crypto, prefs);
}
 
开发者ID:prolificinteractive,项目名称:Patrons,代码行数:13,代码来源:ConcealIntPreferenceTest.java


示例5: setUp

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Before public void setUp() throws Exception {
  prefs = PreferenceManager.getDefaultSharedPreferences(InstrumentationRegistry.getContext());
  crypto = AndroidConceal
      .get()
      .createDefaultCrypto(new SharedPrefsBackedKeyChain(
          InstrumentationRegistry.getContext(),
          CryptoConfig.KEY_256
      ));
}
 
开发者ID:prolificinteractive,项目名称:Patrons,代码行数:10,代码来源:ConcealFloatPreferenceTest.java


示例6: SecurePreferences

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
private SecurePreferences(Context context,
                          final KeyChain keyChain,
                          final Entity entity,
                          final String sharedPrefFilename) {
    this.entity = entity;
    this.sharedPreferences = getSharedPreferenceFile(context, sharedPrefFilename);
    this.crypto = AndroidConceal.get().createCrypto256Bits(keyChain);
}
 
开发者ID:KaKaVip,项目名称:secure-preferences,代码行数:9,代码来源:SecurePreferences.java


示例7: ConcealCrypto

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public ConcealCrypto(Context context,CryptoConfig config){
    keyChain = new SharedPrefsBackedKeyChain(context,config==null?CryptoConfig.KEY_256:config);
    crypto = AndroidConceal.get().createDefaultCrypto(keyChain);
}
 
开发者ID:afiqiqmal,项目名称:ConcealSharedPreference-Android,代码行数:5,代码来源:ConcealCrypto.java


示例8: provideCrypto

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Provides
@Singleton
com.facebook.crypto.Crypto provideCrypto(@AppContext Context context) {
    BeeConcealKeyChain keyChain = new BeeConcealKeyChain(context);
    return AndroidConceal.get().createCrypto256Bits(keyChain);
}
 
开发者ID:TomeOkin,项目名称:LsPush,代码行数:7,代码来源:DataModule.java


示例9: PropertyCrypto

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public PropertyCrypto(Context context, Gson gson) {
    BeeConcealKeyChain keyChain = new BeeConcealKeyChain(context);
    mFbCrypto = AndroidConceal.get().createCrypto256Bits(keyChain);
    mGson = gson;
}
 
开发者ID:TomeOkin,项目名称:LsPush,代码行数:6,代码来源:PropertyCrypto.java


示例10: BeeEncryption

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public BeeEncryption(Context context) {
    BeeConcealKeyChain keyChain = new BeeConcealKeyChain(context);
    crypto = AndroidConceal.get().createCrypto256Bits(keyChain);
}
 
开发者ID:TomeOkin,项目名称:LsPush,代码行数:5,代码来源:BeeEncryption.java


示例11: CipherStorageFacebookConceal

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public CipherStorageFacebookConceal(ReactApplicationContext reactContext) {
    KeyChain keyChain = new SharedPrefsBackedKeyChain(reactContext, CryptoConfig.KEY_256);
    this.crypto = AndroidConceal.get().createDefaultCrypto(keyChain);
}
 
开发者ID:oblador,项目名称:react-native-keychain,代码行数:5,代码来源:CipherStorageFacebookConceal.java


示例12: ConcealEncryption

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
public ConcealEncryption(Context context) {
  SharedPrefsBackedKeyChain keyChain = new SharedPrefsBackedKeyChain(context, CryptoConfig.KEY_256);
  crypto = AndroidConceal.get().createDefaultCrypto(keyChain);
}
 
开发者ID:orhanobut,项目名称:hawk,代码行数:5,代码来源:ConcealEncryption.java


示例13: setup

import com.facebook.android.crypto.keychain.AndroidConceal; //导入依赖的package包/类
@Before public void setup() {
  Context context = InstrumentationRegistry.getContext();
  SharedPrefsBackedKeyChain keyChain = new SharedPrefsBackedKeyChain(context, CryptoConfig.KEY_256);
  crypto = AndroidConceal.get().createDefaultCrypto(keyChain);
}
 
开发者ID:orhanobut,项目名称:hawk,代码行数:6,代码来源:ConcealTest.java



注:本文中的com.facebook.android.crypto.keychain.AndroidConceal类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ContainerSchemaNode类代码示例发布时间:2022-05-23
下一篇:
Java HandlerConfiguration类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap