@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.file(); } } }
@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.file(); } } }
/** * Specifies that encryption should be disabled for storage file. * * @return StorageEncryptionHelper */ StorageEncryptionHelper withoutFileEncryption() { Encryption encryption = getEncryptionConfig(true); if (encryption.services() == null) { encryption.withServices(new EncryptionServices()); } // Disable encryption for blob service // if (encryption.services().file() == null) { encryption.services().withFile(new EncryptionService()); } encryption.services().file().withEnabled(false); if (encryption.keySource() == null) { encryption.withKeySource(KeySource.MICROSOFT_STORAGE); } return this; }
/** * Specifies that storage file encryption should be enabled. * * @return StorageEncryptionHelper */ StorageEncryptionHelper withFileEncryption() { Encryption encryption = getEncryptionConfig(true); if (encryption.services() == null) { encryption.withServices(new EncryptionServices()); } // Enable encryption for file service // if (encryption.services().file() == null) { encryption.services().withFile(new EncryptionService()); } encryption.services().file().withEnabled(true); if (encryption.keySource() == null) { encryption.withKeySource(KeySource.MICROSOFT_STORAGE); } return this; }
/** * Specifies that storage file encryption should be enabled. * * @return StorageEncryptionHelper */ StorageEncryptionHelper withFileEncryption() { Encryption encryption = getEncryptionConfig(true); if (encryption.services() == null) { encryption.withServices(new EncryptionServices()); } // Enable encryption for file service // if (encryption.services().file() == null) { encryption.services().withFile(new EncryptionService()); } encryption.services().file().withEnabled(true); if (encryption.keySource() == null) { encryption.withKeySource(KeySource.MICROSOFT_STORAGE); } return this; }
/** * Specifies that encryption should be disabled for storage file. * * @return StorageEncryptionHelper */ StorageEncryptionHelper withoutFileEncryption() { Encryption encryption = getEncryptionConfig(true); if (encryption.services() == null) { encryption.withServices(new EncryptionServices()); } // Disable encryption for blob service // if (encryption.services().file() == null) { encryption.services().withFile(new EncryptionService()); } encryption.services().file().withEnabled(false); if (encryption.keySource() == null) { encryption.withKeySource(KeySource.MICROSOFT_STORAGE); } return this; }