org.infoglue.cms.util
Class InfoGlueCMSJDBCRealm

java.lang.Object
  |
  +--org.apache.catalina.realm.RealmBase
        |
        +--org.apache.catalina.realm.JDBCRealm
              |
              +--org.infoglue.cms.util.InfoGlueCMSJDBCRealm
All Implemented Interfaces:
org.apache.catalina.Lifecycle, org.apache.catalina.Realm

public class InfoGlueCMSJDBCRealm
extends org.apache.catalina.realm.JDBCRealm


Field Summary
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
InfoGlueCMSJDBCRealm()
           
 
Method Summary
 java.security.Principal authenticate(java.sql.Connection dbConnection, java.lang.String username, java.lang.String credentials)
          Return the Principal associated with the specified username and credentials, if there is one; otherwise return null.
 
Methods inherited from class org.apache.catalina.realm.JDBCRealm
authenticate, getConnectionName, getConnectionPassword, getConnectionURL, getDriverName, getRoleNameCol, getUserCredCol, getUserNameCol, getUserRoleTable, getUserTable, setConnectionName, setConnectionPassword, setConnectionURL, setDriverName, setRoleNameCol, setUserCredCol, setUserNameCol, setUserRoleTable, setUserTable, start, stop
 
Methods inherited from class org.apache.catalina.realm.RealmBase
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, authenticate, Digest, findLifecycleListeners, getContainer, getDebug, getDigest, getInfo, getValidate, hasRole, main, removeLifecycleListener, removePropertyChangeListener, setContainer, setDebug, setDigest, setValidate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoGlueCMSJDBCRealm

public InfoGlueCMSJDBCRealm()
Method Detail

authenticate

public java.security.Principal authenticate(java.sql.Connection dbConnection,
                                            java.lang.String username,
                                            java.lang.String credentials)
                                     throws java.sql.SQLException
Return the Principal associated with the specified username and credentials, if there is one; otherwise return null.

Overrides:
authenticate in class org.apache.catalina.realm.JDBCRealm
Parameters:
dbConnection - The database connection to be used
username - Username of the Principal to look up
credentials - Password or other credentials to use in authenticating this username
Throws:
java.sql.SQLException - if a database error occurs