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