remm 2003/08/26 01:46:48
Modified: catalina/src/share/org/apache/catalina/realm RealmBase.java
Log:
- Bug 22698: Restore RealmBase.main(). There doesn't seem to be any side
effect, so there's no reason to remove it at this time.
Revision Changes Path
1.16 +23 -22
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java
Index: RealmBase.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- RealmBase.java 26 Aug 2003 04:04:56 -0000 1.15
+++ RealmBase.java 26 Aug 2003 08:46:48 -0000 1.16
@@ -987,24 +987,25 @@
}
-// /**
-// * Digest password using the algorithm especificied and
-// * convert the result to a corresponding hex string.
-// * If exception, the plain credentials string is returned
-// */
-// public static void main(String args[]) {
-//
-// if(args.length > 2 && args[0].equalsIgnoreCase("-a")) {
-// for(int i=2; i < args.length ; i++){
-// System.out.print(args[i]+":");
-// System.out.println(Digest(args[i], args[1]));
-// }
-// } else {
-// System.out.println
-// ("Usage: RealmBase -a <algorithm> <credentials>");
-// }
-//
-// }
+ /**
+ * Digest password using the algorithm especificied and
+ * convert the result to a corresponding hex string.
+ * If exception, the plain credentials string is returned
+ */
+ public static void main(String args[]) {
+
+ if(args.length > 2 && args[0].equalsIgnoreCase("-a")) {
+ for(int i=2; i < args.length ; i++){
+ System.out.print(args[i]+":");
+ System.out.println(Digest(args[i], args[1]));
+ }
+ } else {
+ System.out.println
+ ("Usage: RealmBase -a <algorithm> <credentials>");
+ }
+
+ }
+
// -------------------- JMX and Registration --------------------
protected String type;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]