|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.auth.handler.CompareAuthorizationHandler
public class CompareAuthorizationHandler
CompareAuthorizationHandler performs a compare operation with a custom filter. The DN of the authenticated user is automatically provided as the {0} variable in the search filter arguments.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class. |
| Constructor Summary | |
|---|---|
CompareAuthorizationHandler()
Default constructor. |
|
CompareAuthorizationHandler(SearchFilter sf)
Creates a new CompareAuthorizationHandler with the supplied
search filter. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public CompareAuthorizationHandler()
public CompareAuthorizationHandler(SearchFilter sf)
CompareAuthorizationHandler with the supplied
search filter.
sf - SearchFilter| Method Detail |
|---|
public SearchFilter getSearchFilter()
SearchFilterpublic void setSearchFilter(SearchFilter sf)
sf - SearchFilter
public 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 bind
NamingException - if an LDAP error occurspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||