Interface DirContextValidator
-
- All Known Implementing Classes:
DefaultDirContextValidator
public interface DirContextValidator
A validator forDirContext
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validateDirContext(DirContextType contextType, javax.naming.directory.DirContext dirContext)
Validates theDirContext
.
-
-
-
Method Detail
-
validateDirContext
boolean validateDirContext(DirContextType contextType, javax.naming.directory.DirContext dirContext)
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.
-
-