java.lang.Object
org.cryptomator.cryptolib.v1.CryptorProviderImpl
- All Implemented Interfaces:
CryptorProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cryptomator.cryptolib.api.CryptorProvider
CryptorProvider.Scheme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cryptomator.cryptolib.v1.CryptorImplprovide(Masterkey masterkey, SecureRandom random) Creates a new Cryptor instance for the given keyscheme()
-
Constructor Details
-
CryptorProviderImpl
public CryptorProviderImpl()
-
-
Method Details
-
scheme
- Specified by:
schemein interfaceCryptorProvider- Returns:
- The combination of ciphers used by this CryptorProvider implementation.
-
provide
Description copied from interface:CryptorProviderCreates a new Cryptor instance for the given key- Specified by:
providein interfaceCryptorProvider- Parameters:
masterkey- The key used by the returned cryptor during encryption and decryptionrandom- A native (if possible) SecureRandom used to seed internal CSPRNGs- Returns:
- A new cryptor
-