com.ca.jcs.jndi
Class JNDIKerberosConnectionFactory
java.lang.Object
org.apache.commons.pool.BasePoolableObjectFactory
com.ca.jcs.jndi.JNDIConnectionFactory
com.ca.jcs.jndi.JNDIKerberosConnectionFactory
- All Implemented Interfaces:
- PoolableObjectFactory
public class JNDIKerberosConnectionFactory
- extends JNDIConnectionFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JNDIKerberosConnectionFactory
public JNDIKerberosConnectionFactory(Properties jndiEnv,
String confEntry)
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