Class TextCrypt
- java.lang.Object
-
- com.iplanet.services.util.internal.TextCrypt
-
public class TextCrypt extends Object
This class is used to encrypt the string value. It is used during installation.
-
-
Constructor Summary
Constructors Constructor Description TextCrypt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)This method encrypts the passed string and then prints on console.static StringreadFromPasswordFile(String passwordfile)This method reads the password from the file.
-
-
-
Method Detail
-
main
public static void main(String[] args)
This method encrypts the passed string and then prints on console.- Parameters:
args- arguments for this method. The string to be encrypted
-
readFromPasswordFile
public static String readFromPasswordFile(String passwordfile)
This method reads the password from the file. If the read fails it prints stacktrace of the exception.- Parameters:
passwordfile- The file from which the password is read.- Returns:
- Returns the password read from the file.
-
-