CertificateDecodeConfig.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.utils.certificate;

  21. /**
  22.  * CertificateHttpUtilsConfig
  23.  *
  24.  * @author Poli Andrea (apoli@link.it)
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  */
  28. public class CertificateDecodeConfig {

  29.     private boolean urlDecode = false;
  30.    
  31.     private boolean base64Decode = false;
  32.    
  33.     private boolean hexDecode = false;
  34.    
  35.     private boolean urlDecodeOrBase64Decode = false;
  36.    
  37.     private boolean urlDecodeOrBase64DecodeOrHexDecode = false;
  38.    
  39.     private boolean enrichPEMBeginEnd = false;
  40.    
  41.     private boolean replace = false;
  42.     private String replaceSource= "\t";
  43.     private String replaceDest = "\n";
  44.    
  45.     public boolean isUrlDecode() {
  46.         return this.urlDecode;
  47.     }
  48.     public void setUrlDecode(boolean urlDecode) {
  49.         this.urlDecode = urlDecode;
  50.     }
  51.     public boolean isBase64Decode() {
  52.         return this.base64Decode;
  53.     }
  54.     public void setBase64Decode(boolean base64Decode) {
  55.         this.base64Decode = base64Decode;
  56.     }
  57.     public boolean isHexDecode() {
  58.         return this.hexDecode;
  59.     }
  60.     public void setHexDecode(boolean hexDecode) {
  61.         this.hexDecode = hexDecode;
  62.     }
  63.     public boolean isUrlDecodeOrBase64Decode() {
  64.         return this.urlDecodeOrBase64Decode;
  65.     }
  66.     public void setUrlDecodeOrBase64Decode(boolean urlDecodeOrBase64Decode) {
  67.         this.urlDecodeOrBase64Decode = urlDecodeOrBase64Decode;
  68.     }
  69.     public boolean isUrlDecodeOrBase64DecodeOrHexDecode() {
  70.         return this.urlDecodeOrBase64DecodeOrHexDecode;
  71.     }
  72.     public void setUrlDecodeOrBase64DecodeOrHexDecode(boolean urlDecodeOrBase64DecodeOrHexDecode) {
  73.         this.urlDecodeOrBase64DecodeOrHexDecode = urlDecodeOrBase64DecodeOrHexDecode;
  74.     }
  75.     public boolean isEnrichPEMBeginEnd() {
  76.         return this.enrichPEMBeginEnd;
  77.     }
  78.     public void setEnrichPEMBeginEnd(boolean enrich) {
  79.         this.enrichPEMBeginEnd = enrich;
  80.     }
  81.     public boolean isReplace() {
  82.         return this.replace;
  83.     }
  84.     public void setReplace(boolean replace) {
  85.         this.replace = replace;
  86.     }
  87.     public String getReplaceSource() {
  88.         return this.replaceSource;
  89.     }
  90.     public void setReplaceSource(String replaceSource) {
  91.         this.replaceSource = replaceSource;
  92.     }
  93.     public String getReplaceDest() {
  94.         return this.replaceDest;
  95.     }
  96.     public void setReplaceDest(String replaceDest) {
  97.         this.replaceDest = replaceDest;
  98.     }
  99. }