|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_CmsAuthorizationHandler
Defines general authorization methods.
One of the application scenarios for this interface is a personalized SSO implementation.
Nested Class Summary | |
---|---|
static interface |
I_CmsAuthorizationHandler.I_PrivilegedLoginAction
Class providing the privileged login action. |
Method Summary | |
---|---|
java.lang.String |
getLoginFormURL(java.lang.String loginFormURL,
java.lang.String params,
java.lang.String callbackURL)
Returns the full URL used to call a login form with additional parameters and a callbackURL. |
CmsObject |
initCmsObject(javax.servlet.http.HttpServletRequest request)
Creates a new cms object from the given request object. |
CmsObject |
initCmsObject(javax.servlet.http.HttpServletRequest request,
I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction)
Creates a new cms object from the given request object. |
CmsObject |
initCmsObject(javax.servlet.http.HttpServletRequest request,
java.lang.String userName,
java.lang.String pwd)
Authenticates the current request with additional user information. |
void |
requestAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String loginFormURL)
This method sends a request to the client to display a login form, it is needed for HTTP-Authentication. |
void |
setParameters(java.util.Map parameters)
Sets parameters which can be configured additionally for an authorization handler. |
Method Detail |
---|
java.lang.String getLoginFormURL(java.lang.String loginFormURL, java.lang.String params, java.lang.String callbackURL)
loginFormURL
- the form URL specified in the cms (either as a property or system-wide)params
- additional parameters to provide to the login formcallbackURL
- the call-back URL to redirect after a successful login
CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request)
This method is called by OpenCms every time a resource is requested and the session can not automatically be authenticated.
request
- the HTTP request to authenticate
CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request, I_CmsAuthorizationHandler.I_PrivilegedLoginAction loginAction)
This method is called by OpenCms every time a resource is requested and the session can not automatically be authenticated.
request
- the HTTP request to authenticateloginAction
- the privileged login action
CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request, java.lang.String userName, java.lang.String pwd) throws CmsException
You have to call this method by your own.
request
- the HTTP request to authenticateuserName
- the user name to authenticatepwd
- the user password to authenticate with
CmsException
- if something goes wrongvoid requestAuthorization(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String loginFormURL) throws java.io.IOException
req
- the client requestres
- the responseloginFormURL
- the full URL used for form based authentication
java.io.IOException
- if something goes wrongvoid setParameters(java.util.Map parameters)
parameters
- the map of parameters
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |