edu.vt.middleware.ldap.auth.handler
public class CompareAuthorizationHandler extends java.lang.Object implements AuthorizationHandler
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
Constructor and Description |
---|
CompareAuthorizationHandler()
Default constructor.
|
CompareAuthorizationHandler(SearchFilter sf)
Creates a new
CompareAuthorizationHandler with the supplied
search filter. |
Modifier and Type | Method and Description |
---|---|
SearchFilter |
getSearchFilter()
Returns the search filter.
|
void |
process(AuthenticationCriteria ac,
javax.naming.ldap.LdapContext ctx)
Process an authorization after an ldap authentication.
|
void |
setSearchFilter(SearchFilter sf)
Sets the search filter.
|
java.lang.String |
toString()
Provides a descriptive string representation of this authorization handler.
|
public CompareAuthorizationHandler()
public CompareAuthorizationHandler(SearchFilter sf)
CompareAuthorizationHandler
with the supplied
search filter.sf
- SearchFilter
public SearchFilter getSearchFilter()
SearchFilter
public void setSearchFilter(SearchFilter sf)
sf
- SearchFilter
public void process(AuthenticationCriteria ac, javax.naming.ldap.LdapContext ctx) throws javax.naming.NamingException
AuthorizationException
to indicate an
authorization failure.process
in interface AuthorizationHandler
ac
- AuthenticationCriteria
used to perform the
authenticationctx
- LdapContext
authenticated context used to perform
the bindjavax.naming.NamingException
- if an LDAP error occurspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014. All Rights Reserved.