public static class CryptoFileSystemProperties.Builder extends Object
CryptoFileSystemProperties| Modifier and Type | Method and Description |
|---|---|
CryptoFileSystemProperties |
build()
Validates the values and creates new
CryptoFileSystemProperties. |
CryptoFileSystemProperties.Builder |
withFlags(Set<CryptoFileSystemProperties.FileSystemFlags> flags) |
CryptoFileSystemProperties.Builder |
withMasterkeyFilename(String masterkeyFilename)
Sets the name of the masterkey file located inside the vault directory.
|
CryptoFileSystemProperties.Builder |
withPassphrase(CharSequence passphrase)
Sets the passphrase to use for a CryptoFileSystem.
|
CryptoFileSystemProperties.Builder |
withReadonlyFlag()
Sets the readonly flag for a CryptoFileSystem.
|
public CryptoFileSystemProperties.Builder withPassphrase(CharSequence passphrase)
passphrase - the passphrase to usepublic CryptoFileSystemProperties.Builder withFlags(Set<CryptoFileSystemProperties.FileSystemFlags> flags)
public CryptoFileSystemProperties.Builder withReadonlyFlag()
public CryptoFileSystemProperties.Builder withMasterkeyFilename(String masterkeyFilename)
masterkeyFilename - the filename of the json file containing configuration to decrypt the masterkeypublic CryptoFileSystemProperties build()
CryptoFileSystemProperties.CryptoFileSystemProperties with the values from this builderIllegalStateException - if a required value was not set on this BuilderCopyright © 2017. All rights reserved.