|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.plugin.admin.BaseAdminPlugin
org.blojsom.plugin.security.BasicAuthenticationPlugin
Basic Authentication plugin performs a BASIC authorization check so that users much authenticate before they are able to see any blog entries.
| Field Summary |
| Constructor Summary | |
BasicAuthenticationPlugin()
Construct a new instance of the Basic Authentication plugin |
|
| Method Summary | |
void |
cleanup()
Perform any cleanup for the plugin. |
protected boolean |
decodeCredentialsAndAuthenticate(javax.servlet.http.HttpServletRequest httpServletRequest,
Blog blog)
Decode the BASIC authentication credentials and check the username/password against the authorized users for the blog. |
void |
destroy()
Called when BlojsomServlet is taken out of service |
Entry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
Process the blog entries |
protected void |
setAuthenticationRequired(javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog)
Set the appropriate headers for BASIC authentication |
| Methods inherited from class org.blojsom.plugin.admin.BaseAdminPlugin |
addOperationResultMessage, authenticateUser, checkPermission, formatAdminResource, getAdminResource, getUsernameFromSession, init, setAuthorizationProvider, setResourceManager, setServletConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAuthenticationPlugin()
| Method Detail |
protected void setAuthenticationRequired(javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog)
httpServletResponse - Responseblog - Blog
protected boolean decodeCredentialsAndAuthenticate(javax.servlet.http.HttpServletRequest httpServletRequest,
Blog blog)
httpServletRequest - Requestblog - Blog
true if the BASIC authentication credentials are available and pass authentication,
false otherwise
public Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
throws PluginException
process in interface Pluginprocess in class BaseAdminPluginhttpServletRequest - RequesthttpServletResponse - Responseblog - Blog instancecontext - Contextentries - Blog entries retrieved for the particular request
PluginException - If there is an error processing the blog entries
public void cleanup()
throws PluginException
process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.blojsom.blog.Blog, java.util.Map, org.blojsom.blog.Entry[]).
cleanup in interface Plugincleanup in class BaseAdminPluginPluginException - If there is an error performing cleanup for this plugin
public void destroy()
throws PluginException
destroy in interface Plugindestroy in class BaseAdminPluginPluginException - If there is an error in finalizing this plugin
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||