Top Description Fields Constructors Methods
org.apache.derby.impl.jdbc.authentication

public abstract Class JNDIAuthenticationSchemeBase

extends Object
implements UserAuthenticator
Class Inheritance
All Implemented Interfaces
org.apache.derby.authentication.UserAuthenticator
Known Direct Subclasses
org.apache.derby.impl.jdbc.authentication.LDAPAuthenticationSchemeImpl
Imports
org.apache.derby.iapi.services.context.ContextService, org.apache.derby.shared.common.error.StandardException, .ExceptionSeverity, org.apache.derby.iapi.store.access.AccessFactory, .TransactionController, org.apache.derby.iapi.jdbc.AuthenticationService, org.apache.derby.authentication.UserAuthenticator, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.shared.common.reference.SQLState, .MessageId, org.apache.derby.shared.common.i18n.MessageService, java.util.Properties, .Enumeration, java.sql.SQLException

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
org.apache.derby.authentication.UserAuthenticator

Field Summary

Modifier and TypeField and Description
protected final JNDIAuthenticationService
protected Properties
protected String
private AccessFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected static final SQLException
private void
setInitDirContextEnv(Properties dbProps)

Construct the initial JNDI directory context environment Properties object.

protected abstract void
setJNDIProviderProperties()

To be OVERRIDEN by subclasses.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authenticationServiceback to summary
protected final JNDIAuthenticationService authenticationService
initDirContextEnvback to summary
protected Properties initDirContextEnv
providerURLback to summary
protected String providerURL
storeback to summary
private AccessFactory store

Constructor Detail

JNDIAuthenticationSchemeBaseback to summary
public JNDIAuthenticationSchemeBase(JNDIAuthenticationService as, Properties dbProperties)

Method Detail

getLoginSQLExceptionback to summary
protected static final SQLException getLoginSQLException(Exception e)
setInitDirContextEnvback to summary
private void setInitDirContextEnv(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.

setJNDIProviderPropertiesback to summary
protected abstract void setJNDIProviderProperties()

To be OVERRIDEN by subclasses. This basically tests and sets default/expected JNDI properties for the JNDI provider scheme.