Remove unused idGenerator from the SshSessionFactory
| | |
| | | gitblit.getBaseFolder(), HOST_KEY_STORE).getPath())); |
| | | sshd.setPublickeyAuthenticator(publickeyAuthenticator); |
| | | sshd.setPasswordAuthenticator(new SshPasswordAuthenticator(gitblit)); |
| | | sshd.setSessionFactory(new SshSessionFactory(idGenerator)); |
| | | sshd.setSessionFactory(new SshSessionFactory()); |
| | | sshd.setFileSystemFactory(new DisabledFilesystemFactory()); |
| | | sshd.setTcpipForwardingFilter(new NonForwardingFilter()); |
| | | |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | import com.gitblit.utils.IdGenerator; |
| | | |
| | | |
| | | /** |
| | | * |
| | |
| | | |
| | | private final Logger log = LoggerFactory.getLogger(getClass()); |
| | | |
| | | private final IdGenerator idGenerator; |
| | | |
| | | public SshSessionFactory(IdGenerator idGenerator) { |
| | | this.idGenerator = idGenerator; |
| | | public SshSessionFactory() { |
| | | } |
| | | |
| | | @Override |