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

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

public class JDBCLoginModule
extends AbstractDatabaseLoginModule

JDBCLoginModule

JAAS LoginModule to retrieve user information from a database and authenticate the user.

Notes

This version uses plain old JDBC connections NOT Datasources.

Usage

 

版本:
1.0 Tue Apr 15 2003

嵌套类摘要
 
从类 org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule 继承的嵌套类/接口
AbstractLoginModule.JAASUserInfo
 
构造方法摘要
JDBCLoginModule()
           
 
方法摘要
 Connection getConnection()
          Get a connection from the DriverManager
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
          Init LoginModule.
 
从类 org.eclipse.jetty.plus.jaas.spi.AbstractDatabaseLoginModule 继承的方法
getUserInfo
 
从类 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
 

构造方法详细信息

JDBCLoginModule

public JDBCLoginModule()
方法详细信息

getConnection

public Connection getConnection()
                         throws Exception
Get a connection from the DriverManager

指定者:
AbstractDatabaseLoginModule 中的 getConnection
返回:
the connection for this datasource
抛出:
Exception
另请参见:
AbstractDatabaseLoginModule.getConnection()

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)


Copyright © 2013. All Rights Reserved.