Class UserResourceAuthenticator

  • All Implemented Interfaces:
    io.dropwizard.auth.Authenticator<io.dropwizard.auth.basic.BasicCredentials,​LdapUser>

    public class UserResourceAuthenticator
    extends Object
    implements io.dropwizard.auth.Authenticator<io.dropwizard.auth.basic.BasicCredentials,​LdapUser>
    • Constructor Detail

      • UserResourceAuthenticator

        public UserResourceAuthenticator​(LdapAuthenticator ldapAuthenticator)
    • Method Detail

      • authenticate

        public Optional<LdapUser> authenticate​(io.dropwizard.auth.basic.BasicCredentials credentials)
                                        throws io.dropwizard.auth.AuthenticationException
        Specified by:
        authenticate in interface io.dropwizard.auth.Authenticator<io.dropwizard.auth.basic.BasicCredentials,​LdapUser>
        Throws:
        io.dropwizard.auth.AuthenticationException