Tabnine Logo
FormatDnResolver
Code IndexAdd Tabnine to your IDE (free)

How to use
FormatDnResolver
in
org.ldaptive.auth

Best Java code snippets using org.ldaptive.auth.FormatDnResolver (Showing top 9 results out of 315)

origin: org.ldaptive/ldaptive

/**
 * Creates a new format DN resolver with the supplied format and arguments.
 *
 * @param  format  to set formatter string
 * @param  args  to set formatter arguments
 */
public FormatDnResolver(final String format, final Object[] args)
{
 setFormat(format);
 setFormatArgs(args);
}
origin: org.pac4j/pac4j-ldap

public LdapClient() {
  final FormatDnResolver dnResolver = new FormatDnResolver();
  dnResolver.setFormat(LdapServer.CN + "=%s," + LdapServer.BASE_PEOPLE_DN);
origin: com.floragunn/ldaptive

/**
 * Creates a new format DN resolver.
 *
 * @param  format  formatter string
 */
public FormatDnResolver(final String format)
{
 setFormat(format);
}
origin: org.pac4j/pac4j-config

private static Authenticator getDirectBindAuthenticator(final LdapAuthenticationProperties l) {
  if (StringUtils.isBlank(l.getDnFormat())) {
    throw new IllegalArgumentException("Dn format cannot be empty/blank for direct bind authentication");
  }
  final FormatDnResolver resolver = new FormatDnResolver(l.getDnFormat());
  final Authenticator authenticator = new Authenticator(resolver, getPooledBindAuthenticationHandler(l));
  if (l.isEnhanceWithEntryResolver()) {
    authenticator.setEntryResolver(newSearchEntryResolver(l));
  }
  return authenticator;
}
origin: org.ldaptive/ldaptive

/**
 * Creates a new format DN resolver.
 *
 * @param  format  formatter string
 */
public FormatDnResolver(final String format)
{
 setFormat(format);
}
origin: org.pac4j/pac4j-config

private static Authenticator getActiveDirectoryAuthenticator(final LdapAuthenticationProperties l) {
  if (StringUtils.isBlank(l.getDnFormat())) {
    throw new IllegalArgumentException("Dn format cannot be empty/blank for active directory authentication");
  }
  final FormatDnResolver resolver = new FormatDnResolver(l.getDnFormat());
  final Authenticator authn = new Authenticator(resolver, getPooledBindAuthenticationHandler(l));
  if (l.isEnhanceWithEntryResolver()) {
    authn.setEntryResolver(newSearchEntryResolver(l));
  }
  return authn;
}
origin: com.floragunn/ldaptive

/**
 * Creates a new format DN resolver with the supplied format and arguments.
 *
 * @param  format  to set formatter string
 * @param  args  to set formatter arguments
 */
public FormatDnResolver(final String format, final Object[] args)
{
 setFormat(format);
 setFormatArgs(args);
}
origin: vt-middleware/ldaptive

/**
 * Creates a new format DN resolver.
 *
 * @param  format  formatter string
 */
public FormatDnResolver(final String format)
{
 setFormat(format);
}
origin: vt-middleware/ldaptive

/**
 * Creates a new format DN resolver with the supplied format and arguments.
 *
 * @param  format  to set formatter string
 * @param  args  to set formatter arguments
 */
public FormatDnResolver(final String format, final Object[] args)
{
 setFormat(format);
 setFormatArgs(args);
}
org.ldaptive.authFormatDnResolver

Javadoc

Returns a DN by applying a formatter. See java.util.Formatter.

Most used methods

  • setFormat
    Sets the formatter string used to return the entry DN.
  • <init>
    Creates a new format DN resolver with the supplied format and arguments.
  • setFormatArgs
    Sets the format arguments.

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Join (org.hibernate.mapping)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now