Interface DataSourcePasswordDecrypter
-
- All Known Implementing Classes:
SecretStoreDataSourcePasswordDecrypter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DataSourcePasswordDecrypter
Decrypts an encryptedhibernate.connection.password
- Since:
- 7.16.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
decrypt(@Nullable String encryptedPassword)
Decrypts an encryptedhibernate.connection.password
.
-
-
-
Method Detail
-
decrypt
@Nullable String decrypt(@Nullable String encryptedPassword)
Decrypts an encryptedhibernate.connection.password
. Returnsnull
ifencryptedPassword
isnull
.- Parameters:
encryptedPassword
- the encrypted representation ofhibernate.connection.password
. Can benull
- Returns:
- the decrypted password.
- Throws:
DataSourcePasswordDecryptionException
- if an exception occurs during the decryption process
-
-