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
- SearchFilter
public SearchFilter getSearchFilter()
SearchFilter
public void setSearchFilter(SearchFilter sf)
sf
- SearchFilter
public void process(AuthenticationCriteria ac, LdapContext ctx) throws 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 bindNamingException
- if an LDAP error occursCopyright © 2018. All rights reserved.