org.eclipse.jetty.plus.jaas.spi
类 DataSourceLoginModule
java.lang.Object
org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule
org.eclipse.jetty.plus.jaas.spi.AbstractDatabaseLoginModule
org.eclipse.jetty.plus.jaas.spi.DataSourceLoginModule
- 所有已实现的接口:
- LoginModule
public class DataSourceLoginModule
- extends AbstractDatabaseLoginModule
DataSourceLoginModule
A LoginModule that uses a DataSource to retrieve user authentication
and authorisation information.
- 另请参见:
JDBCLoginModule
| 从类 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 |
DataSourceLoginModule
public DataSourceLoginModule()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
- Init LoginModule.
Called once by JAAS after new instance created.
- 指定者:
- 接口
LoginModule 中的 initialize - 覆盖:
- 类
AbstractDatabaseLoginModule 中的 initialize
- 参数:
subject - callbackHandler - sharedState - options - - 另请参见:
LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
getConnection
public Connection getConnection()
throws Exception
- Get a connection from the DataSource
- 指定者:
- 类
AbstractDatabaseLoginModule 中的 getConnection
- 返回:
- the connection for the datasource
- 抛出:
Exception- 另请参见:
AbstractDatabaseLoginModule.getConnection()
Copyright © 2013. All Rights Reserved.