All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.common.auth.SimpleConfig Maven / Gradle / Ivy

There is a newer version: 8.5.15
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy