1 21 22 package org.apache.derby.impl.jdbc.authentication; 23 24 import org.apache.derby.iapi.reference.MessageId; 25 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.services.i18n.MessageService; 28 29 import org.apache.derby.iapi.jdbc.AuthenticationService; 30 import org.apache.derby.authentication.UserAuthenticator; 31 32 import org.apache.derby.iapi.services.property.PropertyUtil; 33 34 import java.util.Properties ; 35 36 45 public final class NoneAuthenticationServiceImpl 46 extends AuthenticationServiceBase implements UserAuthenticator { 47 48 52 55 public boolean canSupport(Properties properties) { 56 57 return !requireAuthentication(properties); 58 } 59 60 65 public void boot(boolean create, Properties properties) 66 throws StandardException { 67 68 super.boot(create, properties); 70 71 this.setAuthenticationService(this); 76 } 77 78 81 82 90 public boolean authenticateUser(String userName, 91 String userPassword, 92 String databaseName, 93 Properties info 94 ) 95 { 96 return true; 101 } 102 103 } 104 | Popular Tags |