org.apache.derby.impl.jdbc.authentication
Class JNDIAuthenticationSchemeBase

java.lang.Object
  extended byorg.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
protected  JNDIAuthenticationService authenticationService
           
protected  java.util.Properties initDirContextEnv
           
protected  java.lang.String providerURL
           
private  AccessFactory store
           
 
Constructor Summary
JNDIAuthenticationSchemeBase(JNDIAuthenticationService as, java.util.Properties dbProperties)
           
 
Method Summary
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)

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.