public interface CryptoProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
SKF_ALGORITHM |
| Modifier and Type | Method and Description |
|---|---|
Optional<DecryptedData> |
decryptData(byte[] data,
String password) |
Optional<EncryptedData> |
encryptData(byte[] data,
String password) |
CryptoProviderAlgorithmVersion |
getAlgorithmVersion() |
default SecretKey |
getSecretKey(String password) |
static final String SKF_ALGORITHM
Optional<EncryptedData> encryptData(byte[] data, String password)
Optional<DecryptedData> decryptData(byte[] data, String password)
CryptoProviderAlgorithmVersion getAlgorithmVersion()
default SecretKey getSecretKey(String password) throws InvalidKeySpecException, NoSuchAlgorithmException
Copyright © 2019. All rights reserved.