summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager/ISessionManager.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-11-20 21:19:34 -0500
committerJames Moger <james.moger@gitblit.com>2013-11-29 11:05:51 -0500
commitaa6d43e8b28ff73d69a920e9b3a7b284cfce00c3 (patch)
treee3a5246aa499fe1ce6ff3a7a42779f25b9f4811b /src/main/java/com/gitblit/manager/ISessionManager.java
parent8f1c9fd7e0f7ea3d7d0b87788eb92ba2f0f09d59 (diff)
downloadgitblit-aa6d43e8b28ff73d69a920e9b3a7b284cfce00c3.tar.gz
gitblit-aa6d43e8b28ff73d69a920e9b3a7b284cfce00c3.zip
Extract SessionManager from GitBlit singleton
Change-Id: I85c9dfc1413f858dc28d731a0bf653828626e127
Diffstat (limited to 'src/main/java/com/gitblit/manager/ISessionManager.java')
-rw-r--r--src/main/java/com/gitblit/manager/ISessionManager.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/ISessionManager.java b/src/main/java/com/gitblit/manager/ISessionManager.java
index 09e306ac..29f17096 100644
--- a/src/main/java/com/gitblit/manager/ISessionManager.java
+++ b/src/main/java/com/gitblit/manager/ISessionManager.java
@@ -20,7 +20,7 @@ import javax.servlet.http.HttpServletResponse;
import com.gitblit.models.UserModel;
-public interface ISessionManager {
+public interface ISessionManager extends IManager {
/**
* Authenticate a user based on HTTP request parameters.
@@ -44,6 +44,14 @@ public interface ISessionManager {
*/
UserModel authenticate(HttpServletRequest httpRequest, boolean requiresCertificate);
+ /**
+ * Authenticate a user based on a username and password.
+ *
+ * @see IUserService.authenticate(String, char[])
+ * @param username
+ * @param password
+ * @return a user object or null
+ */
UserModel authenticate(String username, char[] password);
/**