Package com.google.gerrit.httpd
Class CacheBasedWebSession
java.lang.Object
com.google.gerrit.httpd.WebSession
com.google.gerrit.httpd.CacheBasedWebSession
- Direct Known Subclasses:
H2CacheBasedWebSession
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CacheBasedWebSession
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, WebSessionManager manager, AuthConfig authConfig, com.google.inject.Provider<AnonymousUser> anonymousProvider, IdentifiedUser.RequestFactory identified, AccountCache byIdCache) -
Method Summary
Modifier and TypeMethodDescriptiongetUser()
boolean
isAccessPathOk
(AccessPath path) boolean
boolean
isValidXGerritAuth
(String keyIn) void
login
(AuthResult res, boolean rememberMe) void
logout()
void
setAccessPathOk
(AccessPath path, boolean ok) void
Set the user account for this current request only.Methods inherited from class com.google.gerrit.httpd.WebSession
addRefUpdatedEvents, getRefUpdatedEvents, resetRefUpdatedEvents
-
Field Details
-
ACCOUNT_COOKIE
- See Also:
-
MAX_AGE_MINUTES
public static final long MAX_AGE_MINUTES
-
-
Constructor Details
-
CacheBasedWebSession
protected CacheBasedWebSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, WebSessionManager manager, AuthConfig authConfig, com.google.inject.Provider<AnonymousUser> anonymousProvider, IdentifiedUser.RequestFactory identified, AccountCache byIdCache)
-
-
Method Details
-
isSignedIn
public boolean isSignedIn()- Specified by:
isSignedIn
in classWebSession
-
getXGerritAuth
- Specified by:
getXGerritAuth
in classWebSession
-
isValidXGerritAuth
- Specified by:
isValidXGerritAuth
in classWebSession
-
isAccessPathOk
- Specified by:
isAccessPathOk
in classWebSession
-
setAccessPathOk
- Specified by:
setAccessPathOk
in classWebSession
-
getUser
- Specified by:
getUser
in classWebSession
-
login
- Specified by:
login
in classWebSession
-
setUserAccountId
Set the user account for this current request only.- Specified by:
setUserAccountId
in classWebSession
-
logout
public void logout()- Specified by:
logout
in classWebSession
-
getSessionId
- Specified by:
getSessionId
in classWebSession
-