comparison src/org/eclipse/jetty/util/security/Credential.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
21 import java.io.Serializable; 21 import java.io.Serializable;
22 import java.security.MessageDigest; 22 import java.security.MessageDigest;
23 23
24 import org.eclipse.jetty.util.StringUtil; 24 import org.eclipse.jetty.util.StringUtil;
25 import org.eclipse.jetty.util.TypeUtil; 25 import org.eclipse.jetty.util.TypeUtil;
26 import org.eclipse.jetty.util.log.Log; 26 import org.slf4j.Logger;
27 import org.eclipse.jetty.util.log.Logger; 27 import org.slf4j.LoggerFactory;
28 28
29 /* ------------------------------------------------------------ */ 29 /* ------------------------------------------------------------ */
30 /** 30 /**
31 * Credentials. The Credential class represents an abstract mechanism for 31 * Credentials. The Credential class represents an abstract mechanism for
32 * checking authentication credentials. A credential instance either represents 32 * checking authentication credentials. A credential instance either represents
41 * @see Password 41 * @see Password
42 * 42 *
43 */ 43 */
44 public abstract class Credential implements Serializable 44 public abstract class Credential implements Serializable
45 { 45 {
46 private static final Logger LOG = Log.getLogger(Credential.class); 46 private static final Logger LOG = LoggerFactory.getLogger(Credential.class);
47 47
48 private static final long serialVersionUID = -7760551052768181572L; 48 private static final long serialVersionUID = -7760551052768181572L;
49 49
50 /* ------------------------------------------------------------ */ 50 /* ------------------------------------------------------------ */
51 /** 51 /**
184 return false; 184 return false;
185 } 185 }
186 } 186 }
187 catch (Exception e) 187 catch (Exception e)
188 { 188 {
189 LOG.warn(e); 189 LOG.warn("",e);
190 return false; 190 return false;
191 } 191 }
192 } 192 }
193 193
194 /* ------------------------------------------------------------ */ 194 /* ------------------------------------------------------------ */
205 { 205 {
206 __md = MessageDigest.getInstance("MD5"); 206 __md = MessageDigest.getInstance("MD5");
207 } 207 }
208 catch (Exception e) 208 catch (Exception e)
209 { 209 {
210 LOG.warn(e); 210 LOG.warn("",e);
211 return null; 211 return null;
212 } 212 }
213 } 213 }
214 214
215 __md.reset(); 215 __md.reset();
219 219
220 return __TYPE + TypeUtil.toString(digest, 16); 220 return __TYPE + TypeUtil.toString(digest, 16);
221 } 221 }
222 catch (Exception e) 222 catch (Exception e)
223 { 223 {
224 LOG.warn(e); 224 LOG.warn("",e);
225 return null; 225 return null;
226 } 226 }
227 } 227 }
228 } 228 }
229 } 229 }