| java.lang.Object org.blojsom.plugin.admin.BaseAdminPlugin org.blojsom.plugin.security.BasicAuthenticationPlugin
BasicAuthenticationPlugin | public class BasicAuthenticationPlugin extends BaseAdminPlugin (Code) | | Basic Authentication plugin performs a BASIC authorization check so that users much authenticate
before they are able to see any blog entries.
author: David Czarnecki version: $Id: BasicAuthenticationPlugin.java,v 1.4 2007/01/17 02:35:13 czarneckid Exp $ since: blojsom 3.0 |
BasicAuthenticationPlugin | public BasicAuthenticationPlugin()(Code) | | Construct a new instance of the Basic Authentication plugin
|
decodeCredentialsAndAuthenticate | protected boolean decodeCredentialsAndAuthenticate(HttpServletRequest httpServletRequest, Blog blog)(Code) | | Decode the BASIC authentication credentials and check the username/password against
the authorized users for the blog.
Parameters: httpServletRequest - Request Parameters: blog - Blog true if the BASIC authentication credentials are available and pass authentication,false otherwise |
process | public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries) throws PluginException(Code) | | Process the blog entries
Parameters: httpServletRequest - Request Parameters: httpServletResponse - Response Parameters: blog - Blog instance Parameters: context - Context Parameters: entries - Blog entries retrieved for the particular request Modified set of blog entries throws: PluginException - If there is an error processing the blog entries |
setAuthenticationRequired | protected void setAuthenticationRequired(HttpServletResponse httpServletResponse, Blog blog)(Code) | | Set the appropriate headers for BASIC authentication
Parameters: httpServletResponse - Response Parameters: blog - Blog |
Methods inherited from org.blojsom.plugin.admin.BaseAdminPlugin | protected void addOperationResultMessage(Map context, String message)(Code)(Java Doc) protected boolean authenticateUser(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Map context, Blog blog)(Code)(Java Doc) public boolean checkPermission(Blog blog, Map permissionContext, String username, String permission)(Code)(Java Doc) public void cleanup() throws PluginException(Code)(Java Doc) public void destroy() throws PluginException(Code)(Java Doc) protected String formatAdminResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)(Code)(Java Doc) protected String getAdminResource(String resourceID, String fallbackText, Locale locale)(Code)(Java Doc) protected String getUsernameFromSession(HttpServletRequest httpServletRequest, Blog blog)(Code)(Java Doc) public void init() throws PluginException(Code)(Java Doc) public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries) throws PluginException(Code)(Java Doc) public void setAuthorizationProvider(AuthorizationProvider authorizationProvider)(Code)(Java Doc) public void setResourceManager(ResourceManager resourceManager)(Code)(Java Doc) public void setServletConfig(ServletConfig servletConfig)(Code)(Java Doc)
|
|
|