Class CryptoConfigProperty


  • public class CryptoConfigProperty
    extends java.lang.Object
    Encryption of strings. Class is thread safe.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String decrypt​(java.lang.String encryptedData)
      Decrypt the value.
      static java.lang.String encrypt​(java.lang.String clearData)
      Encrypts a string.
      static boolean isEncryptedText​(java.lang.String text)
      Check whether a string is encrypted text or Not.
      static void setKeyFileDir​(java.lang.String keyFileDir)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setKeyFileDir

        public static void setKeyFileDir​(java.lang.String keyFileDir)
      • encrypt

        public static final java.lang.String encrypt​(java.lang.String clearData)
                                              throws java.io.IOException
        Encrypts a string.
        Parameters:
        clearData - string to be encrypted
        Returns:
        encrypted string
        Throws:
        java.io.IOException
      • decrypt

        public static java.lang.String decrypt​(java.lang.String encryptedData)
                                        throws java.io.IOException
        Decrypt the value.
        Parameters:
        encryptedData - data to be decrypted
        Returns:
        decrypted string
        Throws:
        java.io.IOException
      • isEncryptedText

        public static boolean isEncryptedText​(java.lang.String text)
        Check whether a string is encrypted text or Not.
        Parameters:
        text - data to be check
        Returns:
        boolean, whether string encrypted or Not