import java.util.ArrayList;
import java.util.List;
import java.util.Map;
-import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
+import javax.inject.Inject;
+import javax.inject.Singleton;
import org.opendaylight.aaa.api.AuthenticationException;
import org.opendaylight.aaa.api.Claim;
import org.opendaylight.aaa.api.ClaimCache;
/**
* An OSGi proxy for the IdmLight server.
*/
+@Singleton
public class IdmLightProxy implements PasswordCredentialAuth, IdMService, ClaimCache {
-
private static final Logger LOG = LoggerFactory.getLogger(IdmLightProxy.class);
/**
private final IIDMStore idmStore;
private final PasswordHashService passwordService;
+ @Inject
public IdmLightProxy(final IIDMStore idmStore, final PasswordHashService passwordService) {
this.idmStore = idmStore;
- this.passwordService = Objects.requireNonNull(passwordService);
+ this.passwordService = requireNonNull(passwordService);
}
@Override