Class DefaultLdapConnectionValidator
- java.lang.Object
-
- org.apache.directory.ldap.client.api.DefaultLdapConnectionValidator
-
- All Implemented Interfaces:
LdapConnectionValidator
public final class DefaultLdapConnectionValidator extends Object implements LdapConnectionValidator
An implementation ofLdapConnectionValidator
that checks to see that the connectionisConnected()
andisAuthenticated()
.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description DefaultLdapConnectionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validate(LdapConnection connection)
Returns true ifconnection
is connected, and authenticated.
-
-
-
Constructor Detail
-
DefaultLdapConnectionValidator
public DefaultLdapConnectionValidator()
-
-
Method Detail
-
validate
public boolean validate(LdapConnection connection)
Returns true ifconnection
is connected, and authenticated.- Specified by:
validate
in interfaceLdapConnectionValidator
- Parameters:
connection
- The connection to validate- Returns:
- True, if the connection is still valid
-
-