Class JKPasswordDecoder

java.lang.Object
com.jk.core.config.JKPasswordDecoder
All Implemented Interfaces:
org.apache.commons.configuration2.ConfigurationDecoder

public class JKPasswordDecoder extends Object implements org.apache.commons.configuration2.ConfigurationDecoder
This class is responsible for the handling of password decoding.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Field Details

    • PASSWORD_PREFIX

      public static String PASSWORD_PREFIX
      Represents the password prefix.
  • Constructor Details

    • JKPasswordDecoder

      public JKPasswordDecoder()
  • Method Details

    • decode

      public String decode(String password)
      Decodes the specified string. This method is called with a string in encoded form read from a configuration file. An implementation has to be perform an appropriate decoding and return the result. This result is passed to the calling application; so it should be in a readable form.
      Specified by:
      decode in interface org.apache.commons.configuration2.ConfigurationDecoder
      Parameters:
      password - the string to be decoded (not null)
      Returns:
      the decoded string