public static SecretKeyEncryptionStrategy getSecretKeyEncryptionStrategy( AccumuloConfiguration conf) { String className = conf.get(Property.CRYPTO_SECRET_KEY_ENCRYPTION_STRATEGY_CLASS); return getSecretKeyEncryptionStrategy(className); }
.getSecretKeyEncryptionStrategy(params.getKeyEncryptionStrategyClass());
private void setupCryptoFromCachedData(BlockRead cachedCryptoParams) throws IOException { BCFileCryptoModuleParameters params = new BCFileCryptoModuleParameters(); params.read(cachedCryptoParams); if (Arrays.equals(params.getEncryptedKey(), NO_CRYPTO.getEncryptedKey()) && NO_CRYPTO.getOpaqueKeyEncryptionKeyID().equals(params.getOpaqueKeyEncryptionKeyID())) { this.cryptoParams = null; this.cryptoModule = null; this.secretKeyEncryptionStrategy = null; } else { this.cryptoModule = CryptoModuleFactory .getCryptoModule(params.getAllOptions().get(Property.CRYPTO_MODULE_CLASS.getKey())); this.secretKeyEncryptionStrategy = CryptoModuleFactory .getSecretKeyEncryptionStrategy(params.getKeyEncryptionStrategyClass()); // This call should put the decrypted session key within the cryptoParameters object cryptoParams = (BCFileCryptoModuleParameters) secretKeyEncryptionStrategy .decryptSecretKey(params); } }
.getSecretKeyEncryptionStrategy(params.getKeyEncryptionStrategyClass()); params = keyEncryptionStrategy.encryptSecretKey(params);
.getSecretKeyEncryptionStrategy(accumuloConfiguration); this.cryptoParams = (BCFileCryptoModuleParameters) secretKeyEncryptionStrategy .encryptSecretKey(cryptoParams);
cryptoParams.getAllOptions().get(Property.CRYPTO_MODULE_CLASS.getKey())); this.secretKeyEncryptionStrategy = CryptoModuleFactory .getSecretKeyEncryptionStrategy(cryptoParams.getKeyEncryptionStrategyClass());
.getSecretKeyEncryptionStrategy(cryptoParams.getKeyEncryptionStrategyClass());