Class EncryptionUtils

java.lang.Object
de.xima.fc.utils.EncryptionUtils

public class EncryptionUtils extends Object
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • EncryptionUtils

      public EncryptionUtils()
  • Method Details

    • saltedHash

      public static String saltedHash(String clearTextValue)
    • checkSaltedHash

      public static boolean checkSaltedHash(String clearTextValue, String hashedValue)
    • decrypt

      public static String decrypt(String value)
    • decrypt

      public static Integer decrypt(String value, int defaultValue)
    • encrypt

      public static String encrypt(Integer value)
    • encrypt

      public static String encrypt(String value)
    • encrypt

      public static byte[] encrypt(byte[] value)
    • decrypt

      public static byte[] decrypt(byte[] value, byte[] defaultValue)
    • getStringEncryptor

      public static org.jasypt.encryption.pbe.PooledPBEStringEncryptor getStringEncryptor()
    • getBinaryEncryptor

      public static org.jasypt.encryption.pbe.PooledPBEByteEncryptor getBinaryEncryptor()
    • getKeyStoreTypeByFileName

      @Nullable public static String getKeyStoreTypeByFileName(InputStream input)
      Determines the KeyStore type by the provided input stream. Implementation details are taken from KeyStore.getInstance(java.io.File, char[]).
      Parameters:
      input - the input stream providing the data of the key store.
      Returns:
      the key store for the provided input stream.