Class PasswordMaskingUtil


  • public final class PasswordMaskingUtil
    extends Object
    • Method Detail

      • resolveMask

        public static String resolveMask​(String password,
                                         String codecClass)
                                  throws Exception
        This method deals with password masking and returns the password in its plain text form.
        Parameters:
        password - : the original value of password string; interpreted as masked if wrapped in ENC() or as plain text otherwise.
        codecClass - : the codec used to decode the password. Only when the password is interpreted as masked will this codec be used. Ignored otherwise.
        Returns:
        Throws:
        Exception
      • resolveMask

        public static String resolveMask​(Boolean maskPassword,
                                         String password,
                                         String codecClass)
                                  throws Exception
        This method deals with password masking and returns the password in its plain text form.
        Parameters:
        maskPassword - : explicit mask flag. If it's true, the password is interpreted as masked. If it is false, the password is interpreted as plain text. if it is null, the password will be interpreted as masked if the password is wrapped in ENC(), or as plain text otherwise.
        password - : the original value of password string
        codecClass - : the codec used to decode the password. Only when the password is interpreted as masked will this codec be used. Ignored otherwise.
        Returns:
        Throws:
        Exception
      • isEncMasked

        public static boolean isEncMasked​(String password)
      • getHashProcessor

        public static HashProcessor getHashProcessor()