- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Masterkey loaders load keys to unlock Cryptomator vaults.
- See Also:
-
Method Summary
-
Method Details
-
loadKey
Loads a master key. This might be a long-running operation, as it may require user input or expensive computations.It is the caller's responsibility to destroy the returned
Masterkeyafter usage by callingDestroyableSecretKey.destroy(). This can easily be done using a try-with-resource block:Masterkeyloader keyLoader; URI keyId; try (Masterkey key = keyLoader.loadKey(keyId) ){ // Do stuff with the key }- Parameters:
keyId- An URI uniquely identifying the source and identity of the key- Returns:
- a
Masterkeyobject wrapping the raw key bytes. Must not be null - Throws:
MasterkeyLoadingFailedException- Thrown when it is impossible to fulfill the request
-