Class LdapFilter

java.lang.Object
org.gridgain.internal.security.ldap.LdapFilter

public class LdapFilter extends Object
Ldap filter.
  • Constructor Details

    • LdapFilter

      public LdapFilter(String template)
      Constructor.
      Parameters:
      template - Filter template.
  • Method Details

    • resolve

      public String resolve(String identifier)
      Resolves the filter template by substituting the {0} placeholder with the supplied identifier.

      The identifier is escaped per RFC 4515 before substitution, so that filter metacharacters (*, (, ), \ and NUL) in user-supplied input are treated as literal characters instead of being interpreted as filter syntax. This prevents LDAP injection through the login name (or any other value flowing into the filter).

      Parameters:
      identifier - Value to substitute for the {0} placeholder.
      Returns:
      Resolved filter string.