jrun.servlet.security
Interface WebAppSecurityServiceMBean

All Superinterfaces:
ConfigurableServicePartitionMBean, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
All Known Subinterfaces:
WebAppSecurity

public interface WebAppSecurityServiceMBean
extends ConfigurableServicePartitionMBean

Processes and stores security data for a web application. It parses the web.xml and creates WebAppAuthenticationFactorys and SecurityFilters. It also finds the JRunSecurityManager.

Author:
Brian Deitte

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 AuthenticatedPrincipal authenticate(java.lang.String username, java.lang.String password, javax.servlet.http.HttpSession session)
           
 java.lang.String getErrorPage()
           
 java.lang.String getLoginPage()
           
 java.util.Map getServletRoleRefs()
           
 WebAppMetaData getWebAppMetaData()
           
 WebAppSecurity getWebAppSecurity()
           
 boolean isAuthorized(java.security.Principal user, java.util.Collection roleNames)
           
 boolean isPrincipalInRole(java.security.Principal user, java.lang.String role)
           
 void logoff(javax.servlet.http.HttpSession session, java.lang.Object contextId)
           
 
Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean
setChildElements
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

getWebAppSecurity

public WebAppSecurity getWebAppSecurity()

getLoginPage

public java.lang.String getLoginPage()

getErrorPage

public java.lang.String getErrorPage()

logoff

public void logoff(javax.servlet.http.HttpSession session,
                   java.lang.Object contextId)

authenticate

public AuthenticatedPrincipal authenticate(java.lang.String username,
                                           java.lang.String password,
                                           javax.servlet.http.HttpSession session)
                                    throws java.lang.Exception

isAuthorized

public boolean isAuthorized(java.security.Principal user,
                            java.util.Collection roleNames)

isPrincipalInRole

public boolean isPrincipalInRole(java.security.Principal user,
                                 java.lang.String role)

getServletRoleRefs

public java.util.Map getServletRoleRefs()

getWebAppMetaData

public WebAppMetaData getWebAppMetaData()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.