uPortal 2.3.2
API Documentation

org.jasig.portal.security.provider
Class SimpleLdapSecurityContext

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

public class SimpleLdapSecurityContext
extends ChainingSecurityContext
implements ISecurityContext

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.

Version:
$Revision: 1.14 $
Author:
Russell Tokuyama (University of Hawaii)
See Also:
Serialized Form

Field Summary
static int ATTR_FIRSTNAME
           
static int ATTR_LASTNAME
           
static int ATTR_UID
           
 
Method Summary
 void authenticate()
          Authenticates the user.
 int getAuthType()
          Returns the type of authentication this class provides.
 
Methods inherited from class org.jasig.portal.security.provider.ChainingSecurityContext
addSubContext, doesSubContextExist, getAdditionalDescriptor, getOpaqueCredentials, 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, getOpaqueCredentials, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated
 

Field Detail

ATTR_UID

public static final int ATTR_UID
See Also:
Constant Field Values

ATTR_FIRSTNAME

public static final int ATTR_FIRSTNAME
See Also:
Constant Field Values

ATTR_LASTNAME

public static final int ATTR_LASTNAME
See Also:
Constant Field Values
Method Detail

getAuthType

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

Specified by:
getAuthType in interface ISecurityContext
Returns:
authorization type

authenticate

public void authenticate()
                  throws PortalSecurityException
Authenticates the user.

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

uPortal 2.3.2
API Documentation