- java.lang.Object
-
- org.cryptomator.cryptolib.v2.CryptorProviderImpl
-
- All Implemented Interfaces:
CryptorProvider
public class CryptorProviderImpl extends Object implements CryptorProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cryptomator.cryptolib.api.CryptorProvider
CryptorProvider.Scheme
-
-
Constructor Summary
Constructors Constructor Description CryptorProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.cryptomator.cryptolib.v2.CryptorImplprovide(Masterkey masterkey, SecureRandom random)Creates a new Cryptor instance for the given keyCryptorProvider.Schemescheme()
-
-
-
Method Detail
-
scheme
public CryptorProvider.Scheme scheme()
- Specified by:
schemein interfaceCryptorProvider- Returns:
- The combination of ciphers used by this CryptorProvider implementation.
-
provide
public org.cryptomator.cryptolib.v2.CryptorImpl provide(Masterkey masterkey, SecureRandom random)
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
-
-