@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.file(); } } }
@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.queue(); } } }
clonedEncryption.withServices(new EncryptionServices()); if (this.inner.encryption().services().blob() != null) { clonedEncryption.services().withBlob(new EncryptionService()); clonedEncryption.services().blob() .withEnabled(this.inner.encryption().services().blob().enabled()); if (this.inner.encryption().services().file() != null) { clonedEncryption.services().withFile(new EncryptionService()); clonedEncryption.services().file() .withEnabled(this.inner.encryption().services().file().enabled());
/** * 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 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; }
@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.table(); } } }
clonedEncryption.withServices(new EncryptionServices()); if (this.inner.encryption().services().blob() != null) { clonedEncryption.services().withBlob(new EncryptionService()); clonedEncryption.services().blob() .withEnabled(this.inner.encryption().services().blob().enabled()); if (this.inner.encryption().services().file() != null) { clonedEncryption.services().withFile(new EncryptionService()); clonedEncryption.services().file() .withEnabled(this.inner.encryption().services().file().enabled());
/** * 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 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; }
@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.table(); } } }
/** * 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 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; }
@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.file(); } } }
@Override protected EncryptionService encryptionService() { if (super.encryptionServices == null) { return null; } else { return super.encryptionServices.queue(); } } }
/** * 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 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; }