org.objectweb.jonas.security
Class JonasSecurityServiceImpl
java.lang.Object
|
+--org.objectweb.jonas.management.ReconfigDispatcher
|
+--org.objectweb.jonas.service.AbsServiceImpl
|
+--org.objectweb.jonas.security.JonasSecurityServiceImpl
- All Implemented Interfaces:
- JonasSecurityServiceImplMBean, javax.management.NotificationBroadcaster, ReconfigDispatcherMBean, SecurityService, Service
- public class JonasSecurityServiceImpl
- extends AbsServiceImpl
- implements SecurityService, JonasSecurityServiceImplMBean
Security Service implementation
- Author:
- Jeff Mesnil (initial developper), Philippe Coq, John Ellis JOnAS 2.2 Add the possibility to plug
other implementations of the security service., Joe Gittings JOnAS 2.2
Joe Gittings coding for method signature into MethodGuard.add
Field Summary |
static java.lang.String |
CLASS
Security service configuration properties |
Method Summary |
void |
deployBean(java.lang.String containerName,
BeanDesc bd)
Set the security attributes for the bean being deployed. |
void |
doInit(javax.naming.Context ctx)
Init the Service.
|
void |
doStart()
Start the Service
Initialization of the service is already done. |
void |
doStop()
Stop the Service |
java.security.Guard |
getMethodGuard(java.lang.String containerName)
Returns the MethodGuard for the given Container |
java.util.Hashtable |
getPrincipalDeclarativeRoleMapping()
MBean Method |
java.security.Guard |
getRoleGuard(java.lang.String containerName)
Returns the RoleGuard for the given Container |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS
public static final java.lang.String CLASS
- Security service configuration properties
JonasSecurityServiceImpl
public JonasSecurityServiceImpl()
doInit
public void doInit(javax.naming.Context ctx)
throws ServiceException
- Init the Service.
Configuration information is passed thru a Context object.
- Overrides:
doInit
in class AbsServiceImpl
- Parameters:
ctx
- the configuration of the Security service.- Throws:
ServiceException
- if the initialization failed.
doStart
public void doStart()
throws ServiceException
- Start the Service
Initialization of the service is already done.
- Overrides:
doStart
in class AbsServiceImpl
- Throws:
ServiceException
- if the stop failed.
doStop
public void doStop()
- Stop the Service
- Overrides:
doStop
in class AbsServiceImpl
- Following copied from class:
org.objectweb.jonas.service.AbsServiceImpl
- Throws:
ServiceException
- service stopping failed
getMethodGuard
public java.security.Guard getMethodGuard(java.lang.String containerName)
- Returns the MethodGuard for the given Container
- Specified by:
getMethodGuard
in interface SecurityService
- Parameters:
containerName
- The container name- Returns:
- Guard the MethodGuard for the given Container
getRoleGuard
public java.security.Guard getRoleGuard(java.lang.String containerName)
- Returns the RoleGuard for the given Container
- Specified by:
getRoleGuard
in interface SecurityService
- Parameters:
containerName
- The container name- Returns:
- Guard the RoleGuard for the given Container
deployBean
public void deployBean(java.lang.String containerName,
BeanDesc bd)
- Set the security attributes for the bean being deployed.
- Specified by:
deployBean
in interface SecurityService
- Parameters:
containerName
- The container the bean is deployed inbd
- The bean descriptor
getPrincipalDeclarativeRoleMapping
public java.util.Hashtable getPrincipalDeclarativeRoleMapping()
- MBean Method
- Specified by:
getPrincipalDeclarativeRoleMapping
in interface JonasSecurityServiceImplMBean
- Returns:
- Hashtable of correpondences between pricipal and declarative roles