tyrex.security.ldap
Class LDAPLoginModule

java.lang.Object
  |
  +--tyrex.security.ldap.LDAPLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class LDAPLoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule


Field Summary
static java.lang.String OPTION_DN_MASK
          The DN mask (dn-mask).
static java.lang.String OPTION_LDAP_URL
          The LDAP URL (ldap-url).
static java.lang.String OPTION_LOG_ERRORS
          Log errors (log-errors).
static java.lang.String OPTION_REALM
          The name of the realm (realm).
static java.lang.String OPTION_ROLES_RDN
          The roles RDN (roles-rdn).
 
Constructor Summary
LDAPLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_LDAP_URL

public static final java.lang.String OPTION_LDAP_URL
The LDAP URL (ldap-url). The URL of the LDAP server includes the server's host name and port number (if not the default), but no root DN. For example, ldap://intalio.com.

OPTION_DN_MASK

public static final java.lang.String OPTION_DN_MASK
The DN mask (dn-mask). The mask for constructing a DN given the account name, using an asterisk to represent the account name. For example, uid=*,ou=People,dc=intalio,dc=com.

OPTION_ROLES_RDN

public static final java.lang.String OPTION_ROLES_RDN
The roles RDN (roles-rdn). The relative DN underneath which all roles are listed. For example, ou=Roles,dc=intalio,dc=com.

OPTION_REALM

public static final java.lang.String OPTION_REALM
The name of the realm (realm). This module configuration represents a realm and only users in that realm are authenticated. This option may be null if the realm is unknown. For example, intalio.com.

OPTION_LOG_ERRORS

public static final java.lang.String OPTION_LOG_ERRORS
Log errors (log-errors). If this option is specified, initialization errors are logged to the console.
Constructor Detail

LDAPLoginModule

public LDAPLoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler handler,
                       java.util.Map sharedState,
                       java.util.Map options)
Specified by:
initialize in interface javax.security.auth.spi.LoginModule

login

public boolean login()
              throws javax.security.auth.login.LoginException
Specified by:
login in interface javax.security.auth.spi.LoginModule

commit

public boolean commit()
               throws javax.security.auth.login.LoginException
Specified by:
commit in interface javax.security.auth.spi.LoginModule

abort

public boolean abort()
              throws javax.security.auth.login.LoginException
Specified by:
abort in interface javax.security.auth.spi.LoginModule

logout

public boolean logout()
               throws javax.security.auth.login.LoginException
Specified by:
logout in interface javax.security.auth.spi.LoginModule


Intalio Inc. (C) 1999-2001. All rights reserved.