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

public final Class NoneAuthenticationServiceImpl

extends AuthenticationServiceBase
implements UserAuthenticator
Class Inheritance
All Implemented Interfaces
org.apache.derby.authentication.UserAuthenticator
Imports
org.apache.derby.shared.common.reference.MessageId, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.iapi.jdbc.AuthenticationService, org.apache.derby.authentication.UserAuthenticator, org.apache.derby.iapi.services.property.PropertyUtil, java.util.Properties

This authentication service does not care much about authentication.

It is a quiescient authentication service that will basically satisfy any authentication request, as JBMS system was not instructed to have any particular authentication scheme to be loaded at boot-up time.

Field Summary

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 boolean
authenticateUser(String
The user's name used to connect to JBMS system
userName
,
String
The user's password used to connect to JBMS system
userPassword
,
String
The database which the user wants to connect to.
databaseName
,
Properties
Additional jdbc connection info.
info
)

Implements org.apache.derby.authentication.UserAuthenticator.authenticateUser.

Authenticate the passed-in user's credentials.

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 this authentication service.

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

Constructor Detail

NoneAuthenticationServiceImplback to summary
public NoneAuthenticationServiceImpl()

Method Detail

authenticateUserback to summary
public boolean authenticateUser(String userName, String userPassword, String databaseName, Properties info)

Implements org.apache.derby.authentication.UserAuthenticator.authenticateUser.

Authenticate the passed-in user's credentials.

Parameters
userName:String

The user's name used to connect to JBMS system

userPassword:String

The user's password used to connect to JBMS system

databaseName:String

The database which the user wants to connect to.

info:Properties

Additional jdbc connection info.

Returns:boolean

Doc from org.apache.derby.authentication.UserAuthenticator.authenticateUser.

false if the connection request should be denied, true if the connection request should proceed. If false is returned the connection attempt will receive a SQLException with SQL State 08004.

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 this authentication service.

Returns:boolean

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

true if this instance can be used, false otherwise.