ApiKeyInfo.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.core.config.rs.server.api.impl;

  21. /**
  22.  * ApiKeyInfo
  23.  *
  24.  * @author $Author$
  25.  * @version $Rev$, $Date$
  26.  *
  27.  */
  28. public class ApiKeyInfo {

  29.     public static final String API_KEY = "X-Api-Key";
  30.     public static final String APP_ID = "X-App-Id";
  31.    
  32.     private boolean multipleApiKeys = false;
  33.     private String appId;
  34.     private String apiKey;
  35.     private String password;
  36.     private boolean cifrata = false;
  37.    
  38.     public boolean isCifrata() {
  39.         return this.cifrata;
  40.     }
  41.     public void setCifrata(boolean cifrata) {
  42.         this.cifrata = cifrata;
  43.     }
  44.     public boolean isMultipleApiKeys() {
  45.         return this.multipleApiKeys;
  46.     }
  47.     public void setMultipleApiKeys(boolean multipleApiKeys) {
  48.         this.multipleApiKeys = multipleApiKeys;
  49.     }
  50.     public String getAppId() {
  51.         return this.appId;
  52.     }
  53.     public void setAppId(String appId) {
  54.         this.appId = appId;
  55.     }
  56.     public String getApiKey() {
  57.         return this.apiKey;
  58.     }
  59.     public void setApiKey(String apiKey) {
  60.         this.apiKey = apiKey;
  61.     }
  62.     public String getPassword() {
  63.         return this.password;
  64.     }
  65.     public void setPassword(String password) {
  66.         this.password = password;
  67.     }
  68.    
  69. }