edu.vt.middleware.ldap.auth.handler.AuthorizationHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-ldap Show documentation
Show all versions of vt-ldap Show documentation
Library for performing common LDAP operations
/*
$Id: AuthorizationHandler.java 1330 2010-05-23 22:10:53Z dfisher $
Copyright (C) 2003-2010 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 1330 $
Updated: $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
package edu.vt.middleware.ldap.auth.handler;
import javax.naming.NamingException;
import javax.naming.ldap.LdapContext;
/**
* AuthorizationHandler provides processing of authorization queries after
* authentication has succeeded.
*
* @author Middleware Services
* @version $Revision: 1330 $
*/
public interface AuthorizationHandler
{
/**
* Process an authorization after an ldap authentication. The supplied
* LdapContext should not be closed in this method. Implementations
* should throw AuthorizationException
to indicate an
* authorization failure.
*
* @param ac AuthenticationCriteria
used to perform the
* authentication
* @param ctx LdapContext
authenticated context used to perform
* the bind
*
* @throws AuthorizationException if authorization fails
* @throws NamingException if an LDAP error occurs
*/
void process(AuthenticationCriteria ac, LdapContext ctx)
throws NamingException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy