Package com.jk.core.config
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PASSWORD_PREFIX
Represents the password prefix.
-
-
Constructor Details
-
JKPasswordDecoder
public JKPasswordDecoder()
-
-
Method Details
-
decode
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 interfaceorg.apache.commons.configuration2.ConfigurationDecoder
- Parameters:
password
- the string to be decoded (not null)- Returns:
- the decoded string
-