Class JKSessionPCustomizer

java.lang.Object
com.jk.data.vendors.eclipselink.JKSessionPCustomizer

public class JKSessionPCustomizer extends Object
This class provides methods for decoding user name and password properties from base64 encoding.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKSessionPCustomizer

      public JKSessionPCustomizer()
  • Method Details

    • customize

      public void customize(Properties prop) throws Exception
      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

      public static String decode(String name)
      This method decodes a base64-encoded string.
      Parameters:
      name - Specifies the base64-encoded string to decode.
      Returns:
      the decoded string.
    • encode

      public static String encode(String value)
      This method encodes a string to base64.
      Parameters:
      value - Specifies the string to encode.
      Returns:
      the base64-encoded string.
    • main

      public static void main(String[] args)
      This main method is used for testing base64 encoding and decoding.
      Parameters:
      args - the command-line arguments.