springpython.security.providers
index
/home/gturnquist/spring-python-1.2.x/src/springpython/security/providers/__init__.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.

 
Package Contents
       
Ldap
_Ldap_cpython
_Ldap_jython
dao
encoding

 
Classes
       
__builtin__.object
AuthenticationProvider
springpython.security.AuthenticationException(springpython.security.SecurityException)
ProviderNotFoundException
Authentication
UsernamePasswordAuthenticationToken
AuthenticationManager

 
class Authentication
    Abstract representation of credential data. The premise is that username and password
are populated, and after authentication this record is returned with the third attribute,
granted authorities, populated.
 
  Methods defined here:
__init__(self)
__str__(self)
getCredentials(self)
isAuthenticated(self)
setAuthenticated(self, authenticated)

 
class AuthenticationManager
    Iterates an Authentication request through a list of AuthenticationProviders. 
 
AuthenticationProviders are tried in order until one provides a non-null response.
A non-null response indicates the provider had authority to decide on the authentication
request and no further providers are tried. If an AuthenticationException is thrown by
a provider, it is retained until subsequent providers are tried. If a subsequent provider
successfully authenticates the request, the earlier authentication exception is disregarded
and the successful authentication will be used. If no subsequent provider provides a
non-null response, or a new AuthenticationException, the last AuthenticationException
received will be used. If no provider returns a non-null response, or indicates it can
even process an Authentication, the AuthenticationManager will throw a ProviderNotFoundException.
 
  Methods defined here:
__init__(self, auth_providers=None)
authenticate(self, authentication)
Attempts to authenticate the passed Authentication object, returning a fully
populated Authentication object (including granted authorities) if successful.

 
class AuthenticationProvider(__builtin__.object)
    Indicates a class can process a specific Authentication implementation.
 
  Methods defined here:
authenticate(self, authentication)
Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication).
supports(self, authentication)
Returns true if this AuthenticationProvider supports the indicated Authentication object.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class ProviderNotFoundException(springpython.security.AuthenticationException)
    An exception thrown when a list of providers are polled for a security decision,
and none of them supports the request.
 
 
Method resolution order:
ProviderNotFoundException
springpython.security.AuthenticationException
springpython.security.SecurityException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors inherited from springpython.security.SecurityException:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class UsernamePasswordAuthenticationToken(Authentication)
    A basic concrete version of authentication. Works for most scenarios.
 
  Methods defined here:
__init__(self, username=None, password=None, granted_auths=None)
__str__(self)
getCredentials(self)

Methods inherited from Authentication:
isAuthenticated(self)
setAuthenticated(self, authenticated)