Class EncryptedInputConfigs

java.lang.Object
org.graylog2.inputs.encryption.EncryptedInputConfigs

public class EncryptedInputConfigs extends Object
Utility functions to deal with input configuration that contains encrypted values.
  • Method Details

    • merge

      public static Map<String,Object> merge(Map<String,Object> orig, Map<String,Object> update)
      Merges two configuration by applying updates while treating encrypted values correctly
      Parameters:
      orig - The original config that should be updated
      update - The new config containing the changes that should be applied to the original config
      Returns:
      The merged config with encrypted values being properly handled
    • getEncryptedFields

      public static Set<String> getEncryptedFields(@Nonnull MessageInput.Config messageInputConfig)
      Returns the names of those fields in an input configuration that are expected to hold EncryptedValues.