LdapConfiguration ldapConfiguration = configuration.getLdapConfiguration()**[ERROR HERE = create a variable in configuration and alter .yml]**;
Authenticator<BasicCredentials, BasicCredentials**[ERROR HERE = maybe a class implements Personal ??]**> ldapAuthenticator = new CachingAuthenticator<**[ERROR HERE = cannot infer arguments]**>(
environment.metrics(),
new ResourceAuthenticator(new LdapAuthenticator(ldapConfiguration)),
ldapConfiguration.getCachePolicy());
environment.jersey().register(new AuthDynamicFeature(
new BasicCredentialAuthFilter.Builder<User>()
.setAuthenticator(ldapAuthenticator)
.setRealm("LDAP")
.buildAuthFilter()));
environment.jersey().register(new AuthValueFactoryProvider.Binder<>(BasicCredentials.class**[ERROR HERE = maybe a class implements Personal ??]**));
environment.healthChecks().register("ldap", new LdapHealthCheck<**[ERROR HERE = cannot infer arguments]**>(new LdapCanAuthenticate(ldapConfiguration)))
Here detail: