public class LookupAttemptingCallback extends Object implements AuthenticatedLdapEntryContextCallback, AuthenticatedLdapEntryContextMapper<DirContextOperations>
mapWithContext(javax.naming.directory.DirContext, org.springframework.ldap.core.LdapEntryIdentification)
returns the DirContextOperations instance that results from the lookup operation. This instance
can be used to obtain information regarding the authenticated user.| Constructor and Description |
|---|
LookupAttemptingCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeWithContext(DirContext ctx,
LdapEntryIdentification ldapEntryIdentification)
Perform some LDAP operation on the supplied authenticated
DirContext instance. |
DirContextOperations |
mapWithContext(DirContext ctx,
LdapEntryIdentification ldapEntryIdentification)
Perform some LDAP operation on the supplied authenticated
DirContext instance. |
public void executeWithContext(DirContext ctx, LdapEntryIdentification ldapEntryIdentification)
AuthenticatedLdapEntryContextCallbackDirContext instance. The target context will be
automatically closed.executeWithContext in interface AuthenticatedLdapEntryContextCallbackctx - the DirContext instance to perform an operation
on.ldapEntryIdentification - the identification of the LDAP entry used
to authenticate the supplied DirContext.public DirContextOperations mapWithContext(DirContext ctx, LdapEntryIdentification ldapEntryIdentification)
AuthenticatedLdapEntryContextMapperDirContext instance. The target context will be
automatically closed.mapWithContext in interface AuthenticatedLdapEntryContextMapper<DirContextOperations>ctx - the DirContext instance to perform an operation
on.ldapEntryIdentification - the identification of the LDAP entry used
to authenticate the supplied DirContext.