org.opencms.security
Interface I_CmsAuthorizationHandler

All Known Implementing Classes:
A_CmsAuthorizationHandler

public interface I_CmsAuthorizationHandler

Defines general authorization methods.

One of the application scenarios for this interface is a personalized SSO implementation.

Since:
6.5.4
Version:
$Revision: 1.5 $
Author:
Michael Moossen

Method Summary
 CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request)
          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.
 

Method Detail

initCmsObject

public CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request)
Creates a new cms object from the given request object.

This method is called by OpenCms every time a resource is requested and the session can not automatically be authenticated.

Parameters:
request - the http request to authenticate
Returns:
the cms context object associated to the current session

initCmsObject

public CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request,
                               java.lang.String userName,
                               java.lang.String pwd)
                        throws CmsException
Authenticates the current request with additional user information.

You have to call this method by your own.

Parameters:
request - the http request to authenticate
userName - the user name to authenticate
pwd - the user password to authenticate with
Returns:
the cms context object associated to the given user
Throws:
CmsException - if something goes wrong