|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpUserSessionManager
HttpUserSessionManager is an extended interface of UserSessionManager for HTTP protocal.
| Method Summary | |
|---|---|
boolean |
checkAdminLogin(HttpServletRequest req,
HttpServletResponse res,
java.lang.String realm,
java.util.Properties query)
Check if the logged user is a admin user. |
boolean |
checkAdminLogin(HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
Deprecated. This method has been deprecated since V8. You should in preference to use its overloaded method checkAdminLogin(req, res, realm, query),
if you want to provide a special extra channel feature for admin user. |
boolean |
checkLogin(HttpServletRequest req,
HttpServletResponse res,
java.lang.String realm,
java.util.Properties query)
Do login if the HttpServletRequest has the login infomation. |
boolean |
checkLogin(HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
Deprecated. This method has been deprecated since V8. You should in preference to use its overloaded method checkLogin(req, res, realm, query),
if you want to provide a special extra channel feature for admin user. |
HttpExternalAuthorized |
getHttpExternalAuthorized()
Get the HttpExternalAuthorized. |
java.lang.String |
getUser(HttpServletRequest req)
Get the user ID of the user session by a HttpServletRequest. |
UserSession |
getUserSession(HttpServletRequest req)
Get the user session by a HttpServletRequest. |
boolean |
isExtraChannel(HttpServletRequest req)
Judge whether the incoming request is generated by the special extra channel or not? You can control and manage any access rights to your resources, if the request is from the special extra channel. |
UserSession |
loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod,
java.lang.Object extObj)
Login an user in the digest MD5 method. |
UserSession |
loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod,
java.lang.Object extObj,
boolean isWait)
|
void |
logout(HttpServletRequest req)
Logout the user session by a HttpServletRequest. |
void |
removeExpiredUserSessions(HttpServletRequest req)
Remove the expired user sessions(exceed the max inactive interval). |
void |
sendUnauthorizedResponse(HttpServletRequest req,
HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
Send a HTTP unauthorized response(HTTP 401) to the client. |
void |
setHttpExternalAuthorized(HttpExternalAuthorized externalAuthorized)
Set the HttpExternalAuthorized. |
| Methods inherited from interface jet.server.api.UserSessionManager |
|---|
getAllUserSessions, getAllWaitUserSessions, getAuthenticator, getDefaultMaxInactiveInterval, getLastLoginTime, getLastLogoutTime, isWait, login, loginExternalAuthorized, needSecurity, putSessions, refreshLastAccessTime, setAuthenticator, setDefaultMaxInactiveInterval |
| Method Detail |
|---|
java.lang.String getUser(HttpServletRequest req)
req - the HttpServletRequest.
UserSession getUserSession(HttpServletRequest req)
getUserSession in interface UserSessionManagerreq - the HttpServletRequest.
void setHttpExternalAuthorized(HttpExternalAuthorized externalAuthorized)
externalAuthorized - the HttpExternalAuthorized.HttpExternalAuthorized.HttpExternalAuthorized getHttpExternalAuthorized()
HttpExternalAuthorized.void removeExpiredUserSessions(HttpServletRequest req)
req - the HttpServletRequest.
UserSession loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod,
java.lang.Object extObj)
throws TooManyUsersException
realm - the realm.userID - the user ID.digestResponse - the digest response.unquotedNonce - the unquoted nonce.digestURI - the digest URI.httpMethod - the HTTP method.extObj - the external object attach to the user session.
TooManyUsersException - if a TooManyUsersException occurs.UserSession
UserSession loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod,
java.lang.Object extObj,
boolean isWait)
throws TooManyUsersException
TooManyUsersException
boolean checkLogin(HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
throws TooManyUsersException,
TooManyTimesException,
java.io.IOException
checkLogin(req, res, realm, query),
if you want to provide a special extra channel feature for admin user.
req - the HttpServletRequest.realm - the realm.query - the HTTP query fields.
TooManyUsersException - if a TooManyUsersException occurs.
TooManyTimesException - if a TooManyTimesException occurs.
java.io.IOException - if a IOException occurs.UserSession
boolean checkAdminLogin(HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
throws TooManyUsersException,
TooManyTimesException,
java.io.IOException
checkAdminLogin(req, res, realm, query),
if you want to provide a special extra channel feature for admin user.
req - the HttpServletRequest.realm - the realm.query - the HTTP query fields.
java.io.IOException - if a IOException occurs.
TooManyUsersException
TooManyTimesException
boolean checkLogin(HttpServletRequest req,
HttpServletResponse res,
java.lang.String realm,
java.util.Properties query)
throws TooManyUsersException,
TooManyTimesException,
java.io.IOException
req - the HttpServletRequest.res - the HttpServletResponse.realm - the realm.query - the HTTP query fields.
TooManyUsersException - if a TooManyUsersException occurs.
TooManyTimesException - if a TooManyTimesException occurs.
java.io.IOException - if a IOException occurs.UserSession
boolean checkAdminLogin(HttpServletRequest req,
HttpServletResponse res,
java.lang.String realm,
java.util.Properties query)
throws TooManyUsersException,
TooManyTimesException,
java.io.IOException
req - the HttpServletRequest.res - the HttpServletResponse.realm - the realm.query - the HTTP query fields.
java.io.IOException - if a IOException occurs.
TooManyUsersException
TooManyTimesException
void sendUnauthorizedResponse(HttpServletRequest req,
HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
throws java.io.IOException
req - the HttpServletRequest.res - the HttpServletResponse.authScheme - the the authentication scheme. The available values are "Basic" or "Digest".realm - the realm.
java.io.IOException - if a IOException occurs.void logout(HttpServletRequest req)
logout in interface UserSessionManagerreq - the HttpServletRequest.boolean isExtraChannel(HttpServletRequest req)
req - the HttpServletRequest.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||