Class AesEcbCryptoProviderImpl
- java.lang.Object
-
- de.adorsys.psd2.consent.service.security.provider.aes.AesEcbCryptoProviderImpl
-
- All Implemented Interfaces:
CryptoProvider
public class AesEcbCryptoProviderImpl extends Object implements CryptoProvider
-
-
Constructor Summary
Constructors Constructor Description AesEcbCryptoProviderImpl(String cryptoProviderId, String algorithm, int keyLength, int hashIterations, String skfAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<DecryptedData>decryptData(byte[] data, String password)Decrypts data with some crypto algorithm using passwordOptional<EncryptedData>encryptData(byte[] data, String password)Encrypts data with some crypto algorithm using passwordStringgetCryptoProviderId()Returns crypto provider's id
-
-
-
Method Detail
-
encryptData
public Optional<EncryptedData> encryptData(byte[] data, String password)
Description copied from interface:CryptoProviderEncrypts data with some crypto algorithm using password- Specified by:
encryptDatain interfaceCryptoProvider- Parameters:
data- Raw data for encryptionpassword- Secret key to encrypt the data with- Returns:
- encrypted data
-
decryptData
public Optional<DecryptedData> decryptData(byte[] data, String password)
Description copied from interface:CryptoProviderDecrypts data with some crypto algorithm using password- Specified by:
decryptDatain interfaceCryptoProvider- Parameters:
data- Encrypted data for decryptionpassword- Secret key to decrypt the data with- Returns:
- Raw data
-
getCryptoProviderId
public String getCryptoProviderId()
Description copied from interface:CryptoProviderReturns crypto provider's id- Specified by:
getCryptoProviderIdin interfaceCryptoProvider- Returns:
- Id of crypto provider
-
-