io.camunda.common.auth.SimpleConfig Maven / Gradle / Ivy
package io.camunda.common.auth;
import java.util.HashMap;
import java.util.Map;
/** Contains mapping between products and their Simple credentials */
public class SimpleConfig {
private final Map map;
public SimpleConfig() {
map = new HashMap<>();
}
public void addProduct(Product product, SimpleCredential simpleCredential) {
map.put(product, simpleCredential);
}
public Map getMap() {
return map;
}
public SimpleCredential getProduct(Product product) {
return map.get(product);
}
}