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

public Class JNDIAuthenticationService

extends AuthenticationServiceBase
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.property.PropertyUtil, org.apache.derby.iapi.jdbc.AuthenticationService, org.apache.derby.authentication.UserAuthenticator, org.apache.derby.iapi.util.StringUtil, java.util.Properties

This is the JNDI Authentication Service base class.

It instantiates the JNDI authentication scheme defined by the user/ administrator. Derby supports LDAP JNDI providers.

The user can configure its own JNDI provider by setting the system or database property derby.authentication.provider .

Field Summary

Modifier and TypeField and Description
private String
Inherited from org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase:
authenticationSchemeAuthenticationTraceSECMEC_USRSSBPWD

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
boot(boolean
True if the database should be created
create
,
Properties
Configuration properties
properties
)

Overrides org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.boot.

Implements org.apache.derby.iapi.services.monitor.ModuleControl.boot.

Start this module.

public boolean
canSupport(Properties properties)

Implements org.apache.derby.iapi.services.monitor.ModuleSupportable.canSupport.

Check if we should activate the JNDI authentication service.

Inherited from org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase:
applyauthenticategetDatabasePropertiesgetDatabasePropertygetPropertygetServiceModulegetServiceNamegetSystemCredentialsDatabaseNamegetSystemPropertygetTransactionhashPasswordSHA1SchemehashUsingDefaultAlgorithminitmapparsePasswordLifetimeparsePasswordThresholdrequireAuthenticationsetAuthenticationServicestopsubstitutePasswordvalidate

Field Detail

authenticationProviderback to summary
private String authenticationProvider

Constructor Detail

JNDIAuthenticationServiceback to summary
public JNDIAuthenticationService()

Method Detail

bootback to summary
public void boot(boolean create, Properties properties) throws StandardException

Overrides org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.boot.

Implements org.apache.derby.iapi.services.monitor.ModuleControl.boot.

Doc from org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.boot.

Start this module. In this case, nothing needs to be done.

Parameters
create:boolean

Doc from org.apache.derby.iapi.services.monitor.ModuleControl.boot.

True if the database should be created

properties:Properties

Doc from org.apache.derby.iapi.services.monitor.ModuleControl.boot.

Configuration properties

Exceptions
StandardException:
upon failure to load/boot the expected authentication service.
See Also
org.apache.derby.iapi.services.monitor.ModuleControl#boot
canSupportback to summary
public boolean canSupport(Properties properties)

Implements org.apache.derby.iapi.services.monitor.ModuleSupportable.canSupport.

Check if we should activate the JNDI authentication service.

Returns:boolean

Doc from org.apache.derby.iapi.services.monitor.ModuleSupportable.canSupport.

true if this instance can be used, false otherwise.