| | |
| | | |
| | | import com.gitblit.models.UserModel; |
| | | import com.gitblit.transport.ssh.CommandMetaData; |
| | | import com.gitblit.transport.ssh.CachingPublicKeyAuthenticator; |
| | | import com.gitblit.transport.ssh.gitblit.BaseKeyCommand; |
| | | import com.gitblit.utils.StringUtils; |
| | | import com.gitblit.utils.cli.SubcommandHandler; |
| | | import com.google.common.base.Charsets; |
| | |
| | | cmd.setOutputStream(out); |
| | | cmd.setErrorStream(err); |
| | | cmd.setExitCallback(exit); |
| | | |
| | | if (cmd instanceof BaseKeyCommand) { |
| | | BaseKeyCommand k = (BaseKeyCommand) cmd; |
| | | k.setAuthenticator(authenticator); |
| | | } |
| | | } |
| | | |
| | | private CachingPublicKeyAuthenticator authenticator; |
| | | |
| | | public void setAuthenticator(CachingPublicKeyAuthenticator authenticator) { |
| | | this.authenticator = authenticator; |
| | | } |
| | | } |