Class DatabasePrefixHandler

java.lang.Object
org.camunda.bpm.engine.impl.digest.DatabasePrefixHandler

public class DatabasePrefixHandler extends Object
In order to distinguish between the used hashed algorithm for the password encryption, as prefix is persisted with the encrypted to the database. The DatabasePrefixHandler is used to handle the prefix, especially for building the prefix, retrieving the algorithm name from the prefix and removing the prefix name from the hashed password.
  • Field Details

    • pattern

      protected Pattern pattern
  • Constructor Details

    • DatabasePrefixHandler

      public DatabasePrefixHandler()
  • Method Details

    • generatePrefix

      public String generatePrefix(String algorithmName)
    • retrieveAlgorithmName

      public String retrieveAlgorithmName(String encryptedPasswordWithPrefix)
    • removePrefix

      public String removePrefix(String encryptedPasswordWithPrefix)