org.objectweb.jonas.security
Class JonasSecurityServiceImpl

java.lang.Object
  |
  +--org.objectweb.jonas.service.AbsServiceImpl
        |
        +--org.objectweb.jonas.security.JonasSecurityServiceImpl
All Implemented Interfaces:
JonasSecurityServiceImplMBean, SecurityService, Service

public class JonasSecurityServiceImpl
extends AbsServiceImpl
implements SecurityService, JonasSecurityServiceImplMBean

Security Service implementation

Author:
Philippe Coq Contributor(s): JONAS 2.1 Jeff Mesnil first implementation JOnAS 2.2 John Ellis add the possibility to plug other implementations of the security service. JOnAS 2.2 Joe Gittings coding for method signature into MethodGuard.add.

Field Summary
static java.lang.String CLASS
           
 
Constructor Summary
JonasSecurityServiceImpl()
           
 
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 org.objectweb.jonas.service.AbsServiceImpl
getName, init, isStarted, setName, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

CLASS

public static final java.lang.String CLASS
Constructor Detail

JonasSecurityServiceImpl

public JonasSecurityServiceImpl()
Method Detail

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

doStart

public void doStart()
             throws ServiceException
Start the Service Initialization of the service is already done.
Overrides:
doStart in class AbsServiceImpl

doStop

public void doStop()
Stop the Service
Overrides:
doStop in class AbsServiceImpl

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

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

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 in
bd - 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