| | |
| | | import com.gitblit.git.RepositoryResolver; |
| | | import com.gitblit.transport.ssh.AbstractGitCommand; |
| | | import com.gitblit.transport.ssh.CommandMetaData; |
| | | import com.gitblit.transport.ssh.SshKeyAuthenticator; |
| | | import com.gitblit.transport.ssh.SshSession; |
| | | import com.gitblit.utils.cli.SubcommandHandler; |
| | | import com.google.common.base.Charsets; |
| | |
| | | d.setRepositoryResolver(repositoryResolver); |
| | | d.setUploadPackFactory(gitblitUploadPackFactory); |
| | | d.setReceivePackFactory(gitblitReceivePackFactory); |
| | | d.setAuthenticator(authenticator); |
| | | } else if (cmd instanceof SetAccountCommand) { |
| | | SetAccountCommand setAccountCommand = (SetAccountCommand)cmd; |
| | | setAccountCommand.setAuthenticator(authenticator); |
| | | } |
| | | } |
| | | |
| | |
| | | public void setReceivePackFactory(GitblitReceivePackFactory<SshSession> gitblitReceivePackFactory) { |
| | | this.gitblitReceivePackFactory = gitblitReceivePackFactory; |
| | | } |
| | | |
| | | private SshKeyAuthenticator authenticator; |
| | | public void setAuthenticator(SshKeyAuthenticator authenticator) { |
| | | this.authenticator = authenticator; |
| | | } |
| | | } |