psdi.util

Class ReportEncryptionBase

  • java.lang.Object
    • psdi.util.ReportEncryptionBase
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String decrypt(java.lang.String algorithm, java.lang.String input, boolean doURLDecoding)
      The static method to decrypt a string.
      static java.lang.String encrypt(java.lang.String algorithm, java.lang.String input, boolean doURLEncoding)
      The static method to encrypt a string.
      • Methods inherited from class java.lang.Object

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

      • ReportEncryptionBase

        public ReportEncryptionBase()
    • Method Detail

      • encrypt

        public static java.lang.String encrypt(java.lang.String algorithm,
                                               java.lang.String input,
                                               boolean doURLEncoding)
                                        throws java.lang.Exception
        The static method to encrypt a string. The algorithm is provided by the implementation classes but only supports DES or DESede. DES support is provided for backwards compatibility; DESede is the preferred algorithm.
        Parameters:
        input - The algorithm to use.
        input - The input string to be encrypted.
        doURLEncoding - True to perform URLEncoding before returning the value. This supports passing a value to/from the browser.
        Returns:
        The encrypted string in ASCII.
        Throws:
        java.lang.Exception
      • decrypt

        public static java.lang.String decrypt(java.lang.String algorithm,
                                               java.lang.String input,
                                               boolean doURLDecoding)
                                        throws java.lang.Exception
        The static method to decrypt a string. The algorithm is provided by the implementation classes but only supports DES or DESede. DES support is provided for backwards compatibility; DESede is the preferred algorithm.
        Parameters:
        input - The algorithm to use.
        input - The input string to be decrypted.
        doURLDecoding - True to perform URLDecoding before decrypting. This supports a value passed to/from the browser.
        Returns:
        The cleartext string.
        Throws:
        java.lang.Exception