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"); }
SymmetricCipherBuilder(SymmetricEncryptionConfig sec) { algorithm = sec.getAlgorithm(); passPhrase = sec.getPassword(); salt = createSalt(sec.getSalt()); iterationCount = sec.getIterationCount(); keyBytes = sec.getKey(); }
public static boolean isSymmetricEncryptionEnabled(IOService ioService) { SymmetricEncryptionConfig sec = ioService.getSymmetricEncryptionConfig(); return (sec != null && sec.isEnabled()); }
public SymmetricEncryptionConfig getSymmetricEncryptionConfig() { return node.getConfig().getNetworkConfig().getSymmetricEncryptionConfig(); }
@Override public SymmetricEncryptionConfig getSymmetricEncryptionConfig() { return null; }
SymmetricEncryptionConfig getSymmetricEncryptionConfig();