| | |
| | | */ |
| | | package com.gitblit.manager; |
| | | |
| | | import java.security.PublicKey; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.gitblit.models.TeamModel; |
| | | import com.gitblit.models.UserModel; |
| | | import com.gitblit.transport.ssh.SshSession; |
| | | |
| | | public interface IAuthenticationManager extends IManager { |
| | | |
| | |
| | | */ |
| | | UserModel authenticate(HttpServletRequest httpRequest); |
| | | |
| | | public UserModel authenticate(SshSession sshSession); |
| | | /** |
| | | * Authenticate a user based on a public key. |
| | | * |
| | | * @param username |
| | | * @param key |
| | | * @return a user object or null |
| | | */ |
| | | UserModel authenticate(String username, PublicKey key); |
| | | |
| | | /** |
| | | * Authenticate a user based on HTTP request parameters. |