org.eclipse.jetty.plus.jaas.spi
类 AbstractDatabaseLoginModule

java.lang.Object
  继承者 org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule
      继承者 org.eclipse.jetty.plus.jaas.spi.AbstractDatabaseLoginModule
所有已实现的接口:
LoginModule
直接已知子类:
DataSourceLoginModule, JDBCLoginModule

public abstract class AbstractDatabaseLoginModule
extends AbstractLoginModule

AbstractDatabaseLoginModule Abstract base class for LoginModules that interact with a database to retrieve authentication and authorization information. Used by the JDBCLoginModule and DataSourceLoginModule.


嵌套类摘要
 
从类 org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule 继承的嵌套类/接口
AbstractLoginModule.JAASUserInfo
 
构造方法摘要
AbstractDatabaseLoginModule()
           
 
方法摘要
abstract  Connection getConnection()
           
 UserInfo getUserInfo(String userName)
          Load info from database
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
           
 
从类 org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule 继承的方法
abort, commit, configureCallbacks, getCallbackHandler, getCurrentUser, getSubject, isAuthenticated, isCommitted, login, logout, setAuthenticated, setCallbackHandler, setCommitted, setCurrentUser, setSubject
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AbstractDatabaseLoginModule

public AbstractDatabaseLoginModule()
方法详细信息

getConnection

public abstract Connection getConnection()
                                  throws Exception
返回:
a java.sql.Connection from the database
抛出:
Exception

getUserInfo

public UserInfo getUserInfo(String userName)
                     throws Exception
Load info from database

指定者:
AbstractLoginModule 中的 getUserInfo
参数:
userName - user info to load
抛出:
SQLException
Exception

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map<String,?> sharedState,
                       Map<String,?> options)
指定者:
接口 LoginModule 中的 initialize
覆盖:
AbstractLoginModule 中的 initialize
另请参见:
LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)


Copyright © 2013. All Rights Reserved.