Name
Class com.sun.security.auth.module.JndiLogin-Module
Synopsis
This class allows you to authenticate users via a JNDI database. To configure this login module, you must define (in the login configuration file) two properties: user.provider.url
and group.provider.url
. For example, to contact an LDAP server, you would set the first property to ldap://LDAPServerHostName/LDAPName where LDAPName
is the entry in the LDAP directory. The LDAP server must store information according to the format defined in RFC 2307. This module also works with NIS (using URLs of the form nis://NISServerHostName/NISDomain/user and nis://NISServerHostName/NISDomain/system/group).
Class Definition
public interface com.sun.security.auth.module.JndiLoginModule { // Constants public final String USER_PROVIDER; public final String GROUP_PROVIDER; // Constructors public JndiLoginModule( ) // Instance Methods public abstract boolean abort( ); public abstract boolean commit( ); public abstract void initialize(Subject, CallbackHandler, Map, Map); public abstract boolean login( ); public abstract boolean logout( ); }
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.