tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm JDBCRealm.java
Date Sat, 24 Mar 2001 20:53:58 GMT
nacho       01/03/24 12:53:58

  Modified:    catalina/src/share/org/apache/catalina/realm JDBCRealm.java
  Log:
  Bug#1076
  
  JDBCRealm password digest encoding different to TC3.3
  
  Reported by pyuill at objectix.com.au (Peter Yuill)
  
  Revision  Changes    Path
  1.10      +1 -2      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java
  
  Index: JDBCRealm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- JDBCRealm.java	2001/02/06 02:11:08	1.9
  +++ JDBCRealm.java	2001/03/24 20:53:57	1.10
  @@ -595,8 +595,7 @@
               // obtain the byte array from the digest
               byte[] dig = md.digest();
               // convert the byte array to hex string
  -            Base64 enc=new Base64();
  -            return new String(enc.encode(HexUtils.convert(dig).getBytes()));
  +            return HexUtils.convert(dig);
   
           } catch( Exception ex ) {
                   ex.printStackTrace();
  
  
  

Mime
View raw message