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 继承的方法 |
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.