Class JNDIAuthenticationSchemeBase
- java.lang.Object
-
- org.apache.derby.impl.jdbc.authentication.JNDIAuthenticationSchemeBase
-
- All Implemented Interfaces:
UserAuthenticator
- Direct Known Subclasses:
LDAPAuthenticationSchemeImpl
public abstract class JNDIAuthenticationSchemeBase extends java.lang.Object implements UserAuthenticator
This is the base JNDI authentication scheme class. The generic environment JNDI properties for the selected JNDI scheme are retrieved here so that the user can set JNDI properties at the database or system level.- See Also:
UserAuthenticator
-
-
Field Summary
Fields Modifier and Type Field Description protected JNDIAuthenticationService
authenticationService
protected java.util.Properties
initDirContextEnv
protected java.lang.String
providerURL
private AccessFactory
store
-
Constructor Summary
Constructors Constructor Description JNDIAuthenticationSchemeBase(JNDIAuthenticationService as, java.util.Properties dbProperties)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static java.sql.SQLException
getLoginSQLException(java.lang.Exception e)
private void
setInitDirContextEnv(java.util.Properties dbProps)
Construct the initial JNDI directory context environment Properties object.protected abstract void
setJNDIProviderProperties()
To be OVERRIDEN by subclasses.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.derby.authentication.UserAuthenticator
authenticateUser
-
-
-
-
Field Detail
-
authenticationService
protected final JNDIAuthenticationService authenticationService
-
providerURL
protected java.lang.String providerURL
-
store
private AccessFactory store
-
initDirContextEnv
protected java.util.Properties initDirContextEnv
-
-
Constructor Detail
-
JNDIAuthenticationSchemeBase
public JNDIAuthenticationSchemeBase(JNDIAuthenticationService as, java.util.Properties dbProperties)
-
-
Method Detail
-
setJNDIProviderProperties
protected abstract void setJNDIProviderProperties()
To be OVERRIDEN by subclasses. This basically tests and sets default/expected JNDI properties for the JNDI provider scheme.
-
setInitDirContextEnv
private void setInitDirContextEnv(java.util.Properties dbProps)
Construct the initial JNDI directory context environment Properties object. We retrieve JNDI environment properties that the user may have set at the database level.
-
getLoginSQLException
protected static final java.sql.SQLException getLoginSQLException(java.lang.Exception e)
-
-