comparison src/org/eclipse/jetty/util/security/Password.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
19 package org.eclipse.jetty.util.security; 19 package org.eclipse.jetty.util.security;
20 20
21 import java.io.IOException; 21 import java.io.IOException;
22 import java.util.Arrays; 22 import java.util.Arrays;
23 23
24 import org.eclipse.jetty.util.log.Log; 24 import org.slf4j.Logger;
25 import org.eclipse.jetty.util.log.Logger; 25 import org.slf4j.LoggerFactory;
26 26
27 /* ------------------------------------------------------------ */ 27 /* ------------------------------------------------------------ */
28 /** 28 /**
29 * Password utility class. 29 * Password utility class.
30 * 30 *
52 * 52 *
53 * 53 *
54 */ 54 */
55 public class Password extends Credential 55 public class Password extends Credential
56 { 56 {
57 private static final Logger LOG = Log.getLogger(Password.class); 57 private static final Logger LOG = LoggerFactory.getLogger(Password.class);
58 58
59 private static final long serialVersionUID = 5062906681431569445L; 59 private static final long serialVersionUID = 5062906681431569445L;
60 60
61 public static final String __OBFUSCATE = "OBF:"; 61 public static final String __OBFUSCATE = "OBF:";
62 62
226 int len = System.in.read(buf); 226 int len = System.in.read(buf);
227 if (len > 0) passwd = new String(buf, 0, len).trim(); 227 if (len > 0) passwd = new String(buf, 0, len).trim();
228 } 228 }
229 catch (IOException e) 229 catch (IOException e)
230 { 230 {
231 LOG.warn(Log.EXCEPTION, e); 231 LOG.warn("EXCEPTION", e);
232 } 232 }
233 if (passwd == null || passwd.length() == 0) passwd = promptDft; 233 if (passwd == null || passwd.length() == 0) passwd = promptDft;
234 } 234 }
235 return new Password(passwd); 235 return new Password(passwd);
236 } 236 }