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 encrypted hibernate.connection.password
Since:
7.16.0
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    decrypt(@Nullable String encryptedPassword)
    Decrypts an encrypted hibernate.connection.password.
  • Method Details

    • decrypt

      @Nullable String decrypt(@Nullable String encryptedPassword)
      Decrypts an encrypted hibernate.connection.password. Returns null if encryptedPassword is null.
      Parameters:
      encryptedPassword - the encrypted representation of hibernate.connection.password. Can be null
      Returns:
      the decrypted password.
      Throws:
      DataSourcePasswordDecryptionException - if an exception occurs during the decryption process