Class LdapAuthenticator

java.lang.Object
com.yammer.dropwizard.authenticator.LdapAuthenticator
Direct Known Subclasses:
LdapCanAuthenticate

public class LdapAuthenticator extends Object
  • Field Details

    • configuration

      protected final LdapConfiguration configuration
    • groupCache

      protected final com.github.benmanes.caffeine.cache.Cache<String,Set<String>> groupCache
  • Constructor Details

  • Method Details

    • canAuthenticate

      public boolean canAuthenticate()
    • authenticate

      @Timed public boolean authenticate(io.dropwizard.auth.basic.BasicCredentials credentials) throws io.dropwizard.auth.AuthenticationException
      Throws:
      io.dropwizard.auth.AuthenticationException
    • isValidUser

      public boolean isValidUser(String userName, String role)
    • authenticateAndReturnPermittedGroups

      @Timed public Optional<LdapUser> authenticateAndReturnPermittedGroups(io.dropwizard.auth.basic.BasicCredentials credentials) throws io.dropwizard.auth.AuthenticationException
      Throws:
      io.dropwizard.auth.AuthenticationException