code: public static LdapProperties ldapProperties(final String host,
                                                  final int port,
                                                  final List<String> baseDn,
                                                  final String roleBaseDn,
                                                  final String rdnIdentifier,
                                                  final List<String> prefix,
                                                  final EncryptionType encryptionType,
                                                  final String... whitelistedPaths) {
          final LdapProperties ldap = new LdapProperties();
          ldap.setEnabled(true);
          ldap.setHost(host);
          ldap.setPort(port);
          ldap.setBaseDn(baseDn);
          ldap.setRoleBaseDn(roleBaseDn);
          ldap.setRdnIdentifier(rdnIdentifier);
          ldap.setPrefixes(prefix);
          ldap.setEncryptionType(encryptionType);
          ldap.setWhitelistedPaths(asList(whitelistedPaths));
          return ldap;
      }
docs: Creates Ldap properties. Primarily used in tests.
  
  @param host LDAP server
  @param port LDAP port
  @param baseDn Base distinguished name
  @param roleBaseDn Base distinguished name used to select user roles
  @param rdnIdentifier Relative distinguished name
  @param prefix Prefixes of paths that should require LDAP authentication
  @param encryptionType StartTLS or SSL for the connection to the LDAP server
  @param whitelistedPaths Paths that should be excluded from LDAP authentication (includes sub-paths)
  @return Ldap properties