Class DefaultLdapConnectionValidator
java.lang.Object
org.apache.directory.ldap.client.api.DefaultLdapConnectionValidator
- All Implemented Interfaces:
LdapConnectionValidator
An implementation of
LdapConnectionValidator that checks to see that
the connection isConnected() and isAuthenticated().- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(LdapConnection connection) Returns true ifconnectionis connected, and authenticated.
-
Constructor Details
-
DefaultLdapConnectionValidator
public DefaultLdapConnectionValidator()A default constructor
-
-
Method Details
-
validate
Returns true ifconnectionis connected, and authenticated.- Specified by:
validatein interfaceLdapConnectionValidator- Parameters:
connection- The connection to validate- Returns:
- True, if the connection is still valid
-