Java 类com.hazelcast.config.SymmetricEncryptionConfig 实例源码

项目:Android_Code_Arbiter    文件:HazelcastSymmetric.java   
public void init() {

        //Specific map time to live
        MapConfig myMapConfig = new MapConfig();
        myMapConfig.setName("cachetest");
        myMapConfig.setTimeToLiveSeconds(10);

        //Package config
        Config myConfig = new Config();
        myConfig.addMapConfig(myMapConfig);

        //Symmetric Encryption
        SymmetricEncryptionConfig symmetricEncryptionConfig = new SymmetricEncryptionConfig();
        symmetricEncryptionConfig.setAlgorithm("DESede");
        symmetricEncryptionConfig.setSalt("saltysalt");
        symmetricEncryptionConfig.setPassword("lamepassword");
        symmetricEncryptionConfig.setIterationCount(1337);

        //Weak Network config..
        NetworkConfig networkConfig = new NetworkConfig();
        networkConfig.setSymmetricEncryptionConfig(symmetricEncryptionConfig);

        myConfig.setNetworkConfig(networkConfig);

        Hazelcast.init(myConfig);

        cacheMap = Hazelcast.getMap("cachetest");
    }
项目:hazelcast-archive    文件:CipherHelper.java   
SymmetricCipherBuilder(SymmetricEncryptionConfig sec) {
    algorithm = sec.getAlgorithm();
    passPhrase = sec.getPassword();
    salt = createSalt(sec.getSalt());
    iterationCount = sec.getIterationCount();
    keyBytes = sec.getKey();
}
项目:health-and-care-developer-network    文件:CipherHelper.java   
SymmetricCipherBuilder(SymmetricEncryptionConfig sec) {
    algorithm = sec.getAlgorithm();
    passPhrase = sec.getPassword();
    salt = createSalt(sec.getSalt());
    iterationCount = sec.getIterationCount();
    keyBytes = sec.getKey();
}
项目:hazelcast-archive    文件:CipherHelper.java   
public static boolean isSymmetricEncryptionEnabled(IOService ioService) {
    SymmetricEncryptionConfig sec = ioService.getSymmetricEncryptionConfig();
    return (sec != null && sec.isEnabled());
}
项目:hazelcast-archive    文件:NodeIOService.java   
public SymmetricEncryptionConfig getSymmetricEncryptionConfig() {
    return node.getConfig().getNetworkConfig().getSymmetricEncryptionConfig();
}
项目:hazelcast-simulator    文件:MockIOService.java   
@Override
public SymmetricEncryptionConfig getSymmetricEncryptionConfig() {
    return null;
}
项目:hazelcast-simulator    文件:MockIOService.java   
@Override
public SymmetricEncryptionConfig getSymmetricEncryptionConfig() {
    return null;
}
项目:health-and-care-developer-network    文件:CipherHelper.java   
public static boolean isSymmetricEncryptionEnabled(IOService ioService) {
    SymmetricEncryptionConfig sec = ioService.getSymmetricEncryptionConfig();
    return (sec != null && sec.isEnabled());
}
项目:hazelcast-archive    文件:IOService.java   
SymmetricEncryptionConfig getSymmetricEncryptionConfig();
项目:health-and-care-developer-network    文件:IOService.java   
SymmetricEncryptionConfig getSymmetricEncryptionConfig();