James Moger
2014-07-03 a40cbcfc4fab2ca16304c7393a68fe95a9322edc
src/main/java/com/gitblit/transport/ssh/FileKeyManager.java
@@ -29,6 +29,7 @@
import com.google.common.base.Charsets;
import com.google.common.base.Joiner;
import com.google.common.io.Files;
import com.google.inject.Inject;
/**
 * Manages public keys on the filesystem.
@@ -42,6 +43,7 @@
   protected final Map<File, Long> lastModifieds;
   @Inject
   public FileKeyManager(IRuntimeManager runtimeManager) {
      this.runtimeManager = runtimeManager;
      this.lastModifieds = new ConcurrentHashMap<File, Long>();
@@ -90,7 +92,7 @@
   @Override
   protected List<SshKey> getKeysImpl(String username) {
      try {
         log.info("loading keystore for {}", username);
         log.info("loading ssh keystore for {}", username);
         File keystore = getKeystore(username);
         if (!keystore.exists()) {
            return null;
@@ -128,7 +130,7 @@
            return list;
         }
      } catch (IOException e) {
         throw new RuntimeException("Canot read ssh keys", e);
         throw new RuntimeException("Cannot read ssh keys", e);
      }
      return null;
   }