code: private KeyToStringCodec buildKeyToStringCodec(Map<String, Object> parameters) {
      String encodingName = EncryptionConfigParser.getKeystoreEncoding(parameters);
      switch (encodingName) {
        case HexKeyToStringCodec.TAG:
          return new HexKeyToStringCodec();
        case Base64KeyToStringCodec.TAG:
          return new Base64KeyToStringCodec();
        default:
          throw new IllegalArgumentException("Don't know how to build key to string codec for type " + encodingName);
      }
    }
docs: Build a KeyToStringCodec based on parameters. To reduce complexity we don't build these
  through a ServiceLocator since hopefully the # of key encodings is small.
  @param parameters Config parameters used to build the codec