Class JweCryptoProviderImpl
- java.lang.Object
-
- de.adorsys.psd2.consent.service.security.provider.AbstractCryptoProvider
-
- de.adorsys.psd2.consent.service.security.provider.jwe.JweCryptoProviderImpl
-
- All Implemented Interfaces:
CryptoProvider
public class JweCryptoProviderImpl extends AbstractCryptoProvider implements CryptoProvider
-
-
Constructor Summary
Constructors Constructor Description JweCryptoProviderImpl(String cryptoProviderId, 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 password-
Methods inherited from class de.adorsys.psd2.consent.service.security.provider.AbstractCryptoProvider
getCryptoProviderId, getSecretKey
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.consent.service.security.provider.CryptoProvider
getCryptoProviderId
-
-
-
-
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
-
-