uPortal 2.4.1
API Documentation

org.jasig.portal.security.provider
Class CacheLdapSecurityContext

java.lang.Object
  extended byorg.jasig.portal.security.provider.ChainingSecurityContext
      extended byorg.jasig.portal.security.provider.SimpleLdapSecurityContext
          extended byorg.jasig.portal.security.provider.CacheLdapSecurityContext
All Implemented Interfaces:
IConfigurableSecurityContext, ISecurityContext, java.io.Serializable

Deprecated. As of uPortal 2.1.3, use SimpleLdapSecurityContext chained with CacheSecurityContext instead

public class CacheLdapSecurityContext
extends SimpleLdapSecurityContext

This is an implementation of a SecurityContext that checks a user's credentials against an LDAP directory. It expects to be able to bind to the LDAP directory as the user so that it can authenticate the user. The user's credentials are cached.

Version:
$Revision: 1.11 $
Author:
Russell Tokuyama (University of Hawaii), Ken Weiner, kweiner@unicon.net
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jasig.portal.security.provider.SimpleLdapSecurityContext
ATTR_FIRSTNAME, ATTR_LASTNAME, ATTR_UID, LDAP_PROPERTIES_CONNECTION_NAME
 
Method Summary
 void authenticate()
          Deprecated. Authenticates the user.
 int getAuthType()
          Deprecated. Returns the type of authentication this class provides.
 IOpaqueCredentials getOpaqueCredentials()
          Deprecated. We need to override this method in order to return a class that implements the NotSoOpaqueCredentals interface.
 
Methods inherited from class org.jasig.portal.security.provider.SimpleLdapSecurityContext
setProperties
 
Methods inherited from class org.jasig.portal.security.provider.ChainingSecurityContext
addSubContext, doesSubContextExist, getAdditionalDescriptor, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.portal.security.ISecurityContext
addSubContext, getAdditionalDescriptor, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated
 

Method Detail

getAuthType

public int getAuthType()
Deprecated. 
Returns the type of authentication this class provides.

Specified by:
getAuthType in interface ISecurityContext
Overrides:
getAuthType in class SimpleLdapSecurityContext
Returns:
authorization type

authenticate

public void authenticate()
                  throws PortalSecurityException
Deprecated. 
Authenticates the user.

Specified by:
authenticate in interface ISecurityContext
Overrides:
authenticate in class SimpleLdapSecurityContext
Throws:
PortalSecurityException

getOpaqueCredentials

public IOpaqueCredentials getOpaqueCredentials()
Deprecated. 
We need to override this method in order to return a class that implements the NotSoOpaqueCredentals interface.

Specified by:
getOpaqueCredentials in interface ISecurityContext
Overrides:
getOpaqueCredentials in class ChainingSecurityContext

uPortal 2.4.1
API Documentation