Class CompareLdapValidator

  • All Implemented Interfaces:
    LdapValidator<Ldap>

    public class CompareLdapValidator
    extends java.lang.Object
    implements LdapValidator<Ldap>
    CompareLdapValidator validates an ldap connection is healthy by performing a compare operation.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Field Detail

      • logger

        protected final org.apache.commons.logging.Log logger
        Log for this class.
    • Constructor Detail

      • CompareLdapValidator

        public CompareLdapValidator()
        Default constructor.
      • CompareLdapValidator

        public CompareLdapValidator​(java.lang.String dn,
                                    SearchFilter filter)
        Creates a new CompareLdapValidator with the supplied compare dn and filter.
        Parameters:
        dn - to use for compares
        filter - to use for compares
    • Method Detail

      • getValidateDn

        public java.lang.String getValidateDn()
        Returns the validate DN.
        Returns:
        validate DN
      • getValidateFilter

        public SearchFilter getValidateFilter()
        Returns the validate filter.
        Returns:
        validate filter
      • setValidateDn

        public void setValidateDn​(java.lang.String s)
        Sets the validate DN.
        Parameters:
        s - DN
      • setValidateFilter

        public void setValidateFilter​(SearchFilter filter)
        Sets the validate filter.
        Parameters:
        filter - to compare with
      • validate

        public boolean validate​(Ldap l)
        Validate the supplied ldap object.
        Specified by:
        validate in interface LdapValidator<Ldap>
        Parameters:
        l - ldap object
        Returns:
        whether validation was successful