|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.main.A_CmsAuthorizationHandler
org.opencms.security.CmsDefaultAuthorizationHandler
Defines default authorization methods.
Field Summary | |
static java.lang.String |
AUTHORIZATION_BASIC_PREFIX
Basic authorization prefix constant. |
static java.lang.String |
HEADER_AUTHORIZATION
Authorization header constant. |
static java.lang.String |
SEPARATOR_CREDENTIALS
Credentials separator constant. |
Constructor Summary | |
CmsDefaultAuthorizationHandler()
|
Method Summary | |
protected CmsObject |
checkBasicAuthorization(javax.servlet.http.HttpServletRequest req)
Checks if the current request contains http basic authentication information in the headers, if so the user is tried to log in with this data, and on success a session is generated. |
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)
Autheticates the current request with additional user information. |
Methods inherited from class org.opencms.main.A_CmsAuthorizationHandler |
initCmsObjectFromSession, registerSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String AUTHORIZATION_BASIC_PREFIX
public static final java.lang.String HEADER_AUTHORIZATION
public static final java.lang.String SEPARATOR_CREDENTIALS
Constructor Detail |
public CmsDefaultAuthorizationHandler()
Method Detail |
public CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request)
I_CmsAuthorizationHandler
This method is called by OpenCms everytime a resource is requested and the session can not automatically be authenticated.
request
- the http request to authenticate
I_CmsAuthorizationHandler.initCmsObject(HttpServletRequest)
public CmsObject initCmsObject(javax.servlet.http.HttpServletRequest request, java.lang.String userName, java.lang.String pwd) throws CmsException
I_CmsAuthorizationHandler
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 wrongI_CmsAuthorizationHandler.initCmsObject(HttpServletRequest, String, String)
protected CmsObject checkBasicAuthorization(javax.servlet.http.HttpServletRequest req)
req
- the current http request
null
if failed
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |