public class CompareAuthorizationHandler extends 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,
LdapContext ctx)
Process an authorization after an ldap authentication.
|
void |
setSearchFilter(SearchFilter sf)
Sets the search filter.
|
String |
toString()
Provides a descriptive string representation of this authorization handler.
|
public CompareAuthorizationHandler()
public CompareAuthorizationHandler(SearchFilter sf)
CompareAuthorizationHandler with the supplied
search filter.sf - SearchFilterpublic SearchFilter getSearchFilter()
SearchFilterpublic void setSearchFilter(SearchFilter sf)
sf - SearchFilterpublic void process(AuthenticationCriteria ac, LdapContext ctx) throws NamingException
AuthorizationException to indicate an
authorization failure.process in interface AuthorizationHandlerac - AuthenticationCriteria used to perform the
authenticationctx - LdapContext authenticated context used to perform
the bindNamingException - if an LDAP error occursCopyright © 2014. All rights reserved.