Class NoneAuthenticationServiceImpl
java.lang.Object
org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
org.apache.derby.impl.jdbc.authentication.NoneAuthenticationServiceImpl
- All Implemented Interfaces:
UserAuthenticator
,AuthenticationService
,ModuleControl
,ModuleSupportable
,PropertySetCallback
public final class NoneAuthenticationServiceImpl
extends AuthenticationServiceBase
implements UserAuthenticator
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
Fields inherited from class org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
authenticationScheme, AuthenticationTrace, SECMEC_USRSSBPWD
Fields inherited from interface org.apache.derby.iapi.jdbc.AuthenticationService
MODULE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateUser
(String userName, String userPassword, String databaseName, Properties info) Authenticate the passed-in user's credentials.void
boot
(boolean create, Properties properties) Start this module.boolean
canSupport
(Properties properties) Check if we should activate this authentication service.Methods inherited from class org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
apply, authenticate, getDatabaseProperties, getDatabaseProperty, getProperty, getServiceModule, getServiceName, getSystemCredentialsDatabaseName, getSystemProperty, getTransaction, hashPasswordSHA1Scheme, hashUsingDefaultAlgorithm, init, map, parsePasswordLifetime, parsePasswordThreshold, requireAuthentication, setAuthenticationService, stop, substitutePassword, validate
-
Constructor Details
-
NoneAuthenticationServiceImpl
public NoneAuthenticationServiceImpl()
-
-
Method Details
-
canSupport
Check if we should activate this authentication service.- Specified by:
canSupport
in interfaceModuleSupportable
- Returns:
- true if this instance can be used, false otherwise.
-
boot
Description copied from class:AuthenticationServiceBase
Start this module. In this case, nothing needs to be done.- Specified by:
boot
in interfaceModuleControl
- Overrides:
boot
in classAuthenticationServiceBase
- Throws:
StandardException
- upon failure to load/boot the expected authentication service.- See Also:
-
authenticateUser
public boolean authenticateUser(String userName, String userPassword, String databaseName, Properties info) Authenticate the passed-in user's credentials.- Specified by:
authenticateUser
in interfaceUserAuthenticator
- Parameters:
userName
- The user's name used to connect to JBMS systemuserPassword
- The user's password used to connect to JBMS systemdatabaseName
- The database which the user wants to connect to.info
- Additional jdbc connection info.- Returns:
- 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.
-