Class HashingLongPropertyKeysPluginSettings

java.lang.Object
com.atlassian.bamboo.oauth.shared.HashingLongPropertyKeysPluginSettings
All Implemented Interfaces:
com.atlassian.sal.api.pluginsettings.PluginSettings

public class HashingLongPropertyKeysPluginSettings extends Object implements com.atlassian.sal.api.pluginsettings.PluginSettings
This implementation of PluginSettings prevents keys from getting bigger than 100 characters. If a key exceeds this limit, it will hash the whole key and replace the last characters in the original key with the hashed value and store this key.

This was written by Felix Schmitz for the Applinks plugin and is copied here in its entirety.

  • Constructor Details

    • HashingLongPropertyKeysPluginSettings

      public HashingLongPropertyKeysPluginSettings(com.atlassian.sal.api.pluginsettings.PluginSettings pluginSettings)
  • Method Details

    • get

      public Object get(String key)
      Specified by:
      get in interface com.atlassian.sal.api.pluginsettings.PluginSettings
    • put

      public Object put(String key, Object value)
      Specified by:
      put in interface com.atlassian.sal.api.pluginsettings.PluginSettings
    • remove

      public Object remove(String key)
      Specified by:
      remove in interface com.atlassian.sal.api.pluginsettings.PluginSettings