Package com.jk.data.vendors.eclipselink
Class JKSessionPCustomizer
java.lang.Object
com.jk.data.vendors.eclipselink.JKSessionPCustomizer
This class provides methods for decoding user name and password properties
from base64 encoding.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(Properties prop) This method customizes properties by decoding user name and password properties from base64 encoding.static String
This method decodes a base64-encoded string.static String
This method encodes a string to base64.static void
This main method is used for testing base64 encoding and decoding.
-
Constructor Details
-
JKSessionPCustomizer
public JKSessionPCustomizer()
-
-
Method Details
-
customize
This method customizes properties by decoding user name and password properties from base64 encoding.- Parameters:
prop
- Specifies the properties to customize, including user name and password.- Throws:
Exception
- if an error occurs during customization.
-
decode
This method decodes a base64-encoded string.- Parameters:
name
- Specifies the base64-encoded string to decode.- Returns:
- the decoded string.
-
encode
This method encodes a string to base64.- Parameters:
value
- Specifies the string to encode.- Returns:
- the base64-encoded string.
-
main
This main method is used for testing base64 encoding and decoding.- Parameters:
args
- the command-line arguments.
-