Properties to pass to
- Author:
- Markus Kreusch
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey identifying the combination of ciphers to use in a vault.static final StringKey identifying the filesystem flags.static final StringKey identifying the key loader used during initialization.static final StringDeprecated.static final StringMaximum cleartext filename length.static final StringShortening threshold for ciphertext filenames.static final StringKey identifying the name of the vault config file located inside the vault directory. -
Method Summary
Modifier and TypeMethodDescriptionorg.cryptomator.cryptolib.api.CryptorProvider.SchemeStarts construction ofCryptoFileSystemPropertiescryptoFileSystemPropertiesFrom(Map<String, ?> properties) Starts construction ofCryptoFileSystemPropertiesentrySet()flags()booleanreadonly()static CryptoFileSystemPropertiesConstructsCryptoFileSystemPropertiesfrom aMap.Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
PROPERTY_MAX_CLEARTEXT_NAME_LENGTH
Maximum cleartext filename length.- Since:
- 2.0.0
- See Also:
-
PROPERTY_SHORTENING_THRESHOLD
Shortening threshold for ciphertext filenames.- Since:
- 2.5.0
- See Also:
-
PROPERTY_KEYLOADER
Key identifying the key loader used during initialization.- Since:
- 2.0.0
- See Also:
-
PROPERTY_VAULTCONFIG_FILENAME
Key identifying the name of the vault config file located inside the vault directory.- Since:
- 2.0.0
- See Also:
-
PROPERTY_MASTERKEY_FILENAME
Deprecated.Replaced withexternal keyloaderAPIKey identifying the name of the masterkey file located inside the vault directory.- Since:
- 1.1.0
- See Also:
-
PROPERTY_FILESYSTEM_FLAGS
Key identifying the filesystem flags.- Since:
- 1.3.0
- See Also:
-
PROPERTY_CIPHER_COMBO
Key identifying the combination of ciphers to use in a vault. Only meaningful during vault initialization.- Since:
- 2.0.0
- See Also:
-
-
Method Details
-
cipherCombo
public org.cryptomator.cryptolib.api.CryptorProvider.Scheme cipherCombo() -
flags
-
readonly
public boolean readonly() -
entrySet
-
cryptoFileSystemProperties
Starts construction ofCryptoFileSystemProperties- Returns:
- a
CryptoFileSystemProperties.Builderwhich can be used to constructCryptoFileSystemProperties
-
cryptoFileSystemPropertiesFrom
public static CryptoFileSystemProperties.Builder cryptoFileSystemPropertiesFrom(Map<String, ?> properties) Starts construction ofCryptoFileSystemProperties- Parameters:
properties- aMapcontaining properties used to initialize the builder- Returns:
- a
CryptoFileSystemProperties.Builderwhich can be used to constructCryptoFileSystemPropertiesand has been initialized with the values from properties
-
wrap
ConstructsCryptoFileSystemPropertiesfrom aMap.- Parameters:
properties- theMapto convert- Returns:
- the passed in
Mapif already of typeCryptoFileSystemPropertiesor a newCryptoFileSystemPropertiesinstance holding the values from theMap - Throws:
IllegalArgumentException- if a value in theMapdoes not have the expected type or if a required value is missing
-
external keyloaderAPI