springpython.security.userdetails.dao
index
/home/gturnquist/spring-python-1.2.x/src/springpython/security/userdetails/dao.py

Copyright 2006-2008 SpringSource (http://springsource.com), All Rights Reserved
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
    http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 
Modules
       
logging

 
Classes
       
springpython.security.userdetails.UserDetailsService(__builtin__.object)
DatabaseUserDetailsService

 
class DatabaseUserDetailsService(springpython.security.userdetails.UserDetailsService)
    Retrieves user details (username, password, enabled flag, and authorities) from a database location.
 
A default database structure is assumed, (see DEF_USERS_BY_USERNAME_QUERY and DEF_AUTHORITIES_BY_USERNAME_QUERY,
which most users of this class will need to override, if using an existing scheme. This may be done by
setting the default query strings used. If this does not provide enough flexibility, another strategy
would be to subclass this class and override relevant parts.
 
In order to minimise backward compatibility issues, this DAO does not recognise the expiration of user
accounts or the expiration of user credentials. However, it does recognise and honour the user enabled/disabled
column.
 
 
Method resolution order:
DatabaseUserDetailsService
springpython.security.userdetails.UserDetailsService
__builtin__.object

Methods defined here:
__init__(self, dataSource=None)
add_custom_authorities(self, username, authorities)
load_user(self, username)

Data and other attributes defined here:
AuthoritiesByUsernameMapping = <class 'springpython.security.userdetails.dao.AuthoritiesByUsernameMapping'>
A row handler that processes one granted authority for a given user.
DEF_AUTHORITIES_BY_USERNAME_QUERY = 'SELECT username,authority FROM authorities WHERE username = ?'
DEF_USERS_BY_USERNAME_QUERY = 'SELECT username,password,enabled FROM users WHERE username = ?'
UsersByUsernameMapping = <class 'springpython.security.userdetails.dao.UsersByUsernameMapping'>
A row handler that processes one user entry.

Data descriptors inherited from springpython.security.userdetails.UserDetailsService:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)