Class UnboundLookupConnectionValidator
java.lang.Object
org.apache.jackrabbit.oak.security.authentication.ldap.impl.UnboundLookupConnectionValidator
- All Implemented Interfaces:
org.apache.directory.ldap.client.api.LdapConnectionValidator
public class UnboundLookupConnectionValidator
extends Object
implements org.apache.directory.ldap.client.api.LdapConnectionValidator
UnboundConnectionValidator
...-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(org.apache.directory.ldap.client.api.LdapConnection connection) Returns true ifconnection
is connected, authenticated, and a lookup on the rootDSE returns a non-null response.
-
Constructor Details
-
UnboundLookupConnectionValidator
public UnboundLookupConnectionValidator()
-
-
Method Details
-
validate
public boolean validate(org.apache.directory.ldap.client.api.LdapConnection connection) Returns true ifconnection
is connected, authenticated, and a lookup on the rootDSE returns a non-null response.- Specified by:
validate
in interfaceorg.apache.directory.ldap.client.api.LdapConnectionValidator
- Parameters:
connection
- The connection to validate- Returns:
- True, if the connection is still valid
-