java.lang.Object
io.goobi.viewer.model.security.encryption.Decrypter

public final class Decrypter extends Object
Enrich strings with sensitive data which is in some way encrypted or stored as environment variable by the system. Currently only replacing Strings with environment variables is suppoerted. To include the value "VALUE" of a variable "VARIABLE" in a string, the input must be passed to the static method decrypt(String) as

Some Text $SYS(VARIABLE) and some more

which returns

Some Text VALUE and some more

  • Method Details

    • decrypt

      public static String decrypt(String string)
      Returns the given string with all encryption variable expressions $SYS(...) replaced by the encrypted value
      Parameters:
      string - the input string
      Returns:
      the input string with replacements