org.jasig.portal.security.provider
Class CacheLdapSecurityContext

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

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.12 $
Author:
Russell Tokuyama (University of Hawaii), Ken Weiner, kweiner@unicon.net
See Also:
Serialized Form

Nested Class Summary
private  class CacheLdapSecurityContext.CacheOpaqueCredentials
          Deprecated. This is a new implementation of an OpaqueCredentials class that implements the less-opaque NotSoOpaqueCredentials.
 
Nested classes/interfaces inherited from class org.jasig.portal.security.provider.ChainingSecurityContext
ChainingSecurityContext.ChainingAdditionalDescriptor, ChainingSecurityContext.ChainingOpaqueCredentials, ChainingSecurityContext.ChainingPrincipal
 
Field Summary
private  byte[] cachedCredentials
          Deprecated.  
private  int CACHELDAPSECURITYAUTHTYPE
          Deprecated.  
 
Fields inherited from class org.jasig.portal.security.provider.SimpleLdapSecurityContext
ATTR_FIRSTNAME, ATTR_LASTNAME, ATTR_UID, LDAP_PROPERTIES_CONNECTION_NAME
 
Fields inherited from class org.jasig.portal.security.provider.ChainingSecurityContext
isauth, myAdditionalDescriptor, myOpaqueCredentials, myOrder, myPrincipal, mySubContexts, stopWhenAuthenticated
 
Constructor Summary
CacheLdapSecurityContext()
          Deprecated.  
 
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
clone, equals, finalize, 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
 

Field Detail

CACHELDAPSECURITYAUTHTYPE

private final int CACHELDAPSECURITYAUTHTYPE
Deprecated. 
See Also:
Constant Field Values

cachedCredentials

private byte[] cachedCredentials
Deprecated. 
Constructor Detail

CacheLdapSecurityContext

CacheLdapSecurityContext()
Deprecated. 
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
See Also:
ISecurityContext.getPrincipalInstance(), ISecurityContext.getOpaqueCredentialsInstance()

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
Returns:
The currently authenticated credentials object.
See Also:
IOpaqueCredentials