org.jboss.security.integration
Class SecurityDomainObjectFactory

java.lang.Object
  extended by org.jboss.security.integration.SecurityDomainObjectFactory
All Implemented Interfaces:
InvocationHandler, ObjectFactory

public class SecurityDomainObjectFactory
extends Object
implements InvocationHandler, ObjectFactory

A JNDI Object Factory for the legacy integration to return an instance of SubjectSecurityManager

Since:
Sep 10, 2007
Version:
$Revision: 88858 $
Author:
Anil.Saldhana@redhat.com

Constructor Summary
SecurityDomainObjectFactory()
           
 
Method Summary
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
          Object factory implementation.
 Object invoke(Object obj, Method method, Object[] args)
          This is the InvocationHandler callback for the Context interface that was created by out getObjectInstance() method.
 void setSecurityManagement(JNDIBasedSecurityManagement sm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityDomainObjectFactory

public SecurityDomainObjectFactory()
Method Detail

setSecurityManagement

public void setSecurityManagement(JNDIBasedSecurityManagement sm)

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> environment)
                         throws Exception
Object factory implementation. This method returns a Context proxy that is only able to handle a lookup operation for an atomic name of a security domain.

Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

invoke

public Object invoke(Object obj,
                     Method method,
                     Object[] args)
              throws Throwable
This is the InvocationHandler callback for the Context interface that was created by out getObjectInstance() method. We handle the java:/jaas/domain level operations here.

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.