com.ca.jcs.jndi
Class JNDIKerberosConnectionFactory

java.lang.Object
  extended by org.apache.commons.pool.BasePoolableObjectFactory
      extended by com.ca.jcs.jndi.JNDIConnectionFactory
          extended by com.ca.jcs.jndi.JNDIKerberosConnectionFactory
All Implemented Interfaces:
PoolableObjectFactory

public class JNDIKerberosConnectionFactory
extends JNDIConnectionFactory


Field Summary
protected  String confEntry
           
static String KRB_AUTH_CONF_FILE
           
static String KRB_MIN_LOGIN_MODULE_ENTRY
           
protected  LoginContext lc
           
 
Fields inherited from class com.ca.jcs.jndi.JNDIConnectionFactory
jndiEnv
 
Constructor Summary
JNDIKerberosConnectionFactory(Properties jndiEnv, String confEntry)
           
 
Method Summary
static String calcKrbLoginModuleEntry(MetaConnector conn)
           
 void destroyObject(Object object)
          Disconnect all services for an instance in the pool, as it is being removed from it.
 Object makeObject()
           
 
Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory
activateObject, passivateObject, validateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KRB_AUTH_CONF_FILE

public static final String KRB_AUTH_CONF_FILE
See Also:
Constant Field Values

KRB_MIN_LOGIN_MODULE_ENTRY

public static final String KRB_MIN_LOGIN_MODULE_ENTRY
See Also:
Constant Field Values

lc

protected LoginContext lc

confEntry

protected String confEntry
Constructor Detail

JNDIKerberosConnectionFactory

public JNDIKerberosConnectionFactory(Properties jndiEnv,
                                     String confEntry)
Method Detail

makeObject

public Object makeObject()
                  throws Exception
Specified by:
makeObject in interface PoolableObjectFactory
Overrides:
makeObject in class JNDIConnectionFactory
Returns:
Created secure or normal JNDI connection instance (InitialContext) that can be used by the pool.
Throws:
Exception

destroyObject

public void destroyObject(Object object)
                   throws Exception
Disconnect all services for an instance in the pool, as it is being removed from it.

Specified by:
destroyObject in interface PoolableObjectFactory
Overrides:
destroyObject in class JNDIConnectionFactory
Parameters:
object - the instance to be destroyed
Throws:
Exception

calcKrbLoginModuleEntry

public static String calcKrbLoginModuleEntry(MetaConnector conn)
                                      throws NamingException
Throws:
NamingException


Created 2011-07-14 13:27 EST