Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.jdbc.authentication
Class NoneAuthenticationServiceImpl  view NoneAuthenticationServiceImpl download NoneAuthenticationServiceImpl.java

java.lang.Object
  extended byorg.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
      extended byorg.apache.derby.impl.jdbc.authentication.NoneAuthenticationServiceImpl
All Implemented Interfaces:
org.apache.derby.iapi.jdbc.AuthenticationService, org.apache.derby.iapi.services.monitor.ModuleControl, org.apache.derby.iapi.services.monitor.ModuleSupportable, org.apache.derby.iapi.services.property.PropertySetCallback, org.apache.derby.authentication.UserAuthenticator

public final class NoneAuthenticationServiceImpl
extends AuthenticationServiceBase
implements org.apache.derby.authentication.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, ID_PATTERN_NEW_SCHEME, MAGICLEN_NEWENCRYPT_SCHEME
 
Fields inherited from interface org.apache.derby.iapi.jdbc.AuthenticationService
MODULE
 
Constructor Summary
NoneAuthenticationServiceImpl()
           
 
Method Summary
 boolean authenticateUser(java.lang.String userName, java.lang.String userPassword, java.lang.String databaseName, java.util.Properties info)
          Authenticate the passed-in user's credentials.
 void boot(boolean create, java.util.Properties properties)
          Start this module.
 boolean canSupport(java.util.Properties properties)
          Check if we should activate this authentication service.
 
Methods inherited from class org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
apply, authenticate, encryptPassword, getDatabaseProperty, getProperty, getSystemProperty, init, map, requireAuthentication, setAuthenticationService, stop, toHexByte, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneAuthenticationServiceImpl

public NoneAuthenticationServiceImpl()
Method Detail

canSupport

public boolean canSupport(java.util.Properties properties)
Check if we should activate this authentication service.

Specified by:
canSupport in interface org.apache.derby.iapi.services.monitor.ModuleSupportable

boot

public void boot(boolean create,
                 java.util.Properties properties)
          throws org.apache.derby.iapi.error.StandardException
Description copied from class: AuthenticationServiceBase
Start this module. In this case, nothing needs to be done.

Specified by:
boot in interface org.apache.derby.iapi.services.monitor.ModuleControl
Overrides:
boot in class AuthenticationServiceBase

authenticateUser

public boolean authenticateUser(java.lang.String userName,
                                java.lang.String userPassword,
                                java.lang.String databaseName,
                                java.util.Properties info)
Authenticate the passed-in user's credentials.

Specified by:
authenticateUser in interface org.apache.derby.authentication.UserAuthenticator