Interface DirContextValidator
- All Known Implementing Classes:
DefaultDirContextValidator
public interface DirContextValidator
A validator for
DirContext
s.-
Method Summary
Modifier and TypeMethodDescriptionboolean
validateDirContext
(DirContextType contextType, DirContext dirContext) Validates theDirContext
.
-
Method Details
-
validateDirContext
Validates theDirContext
. A validDirContext
should be able to answer queries and if applicable write to the directory.- Parameters:
contextType
- The type of theDirContext
, refers to ifContextSource.getReadOnlyContext()
orContextSource.getReadWriteContext()
was called to create theDirContext
dirContext
- TheDirContext
to validate.- Returns:
true
if theDirContext
operated correctly during validation.
-