SAMLBuilderConfigAttribute.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.security.message.saml;

  21. import java.util.ArrayList;
  22. import java.util.List;

  23. /**
  24.  * SAMLBuilderConfigAttribute
  25.  *  
  26.  * @author Andrea Poli (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class SAMLBuilderConfigAttribute {

  31.     private String configName;
  32.    
  33.     private String qualifiedName;
  34.     private String simpleName;
  35.     private String formatName = SAMLBuilderConfigConstants.SAML_CONFIG_BUILDER_ATTRIBUTE_SUFFIX_FORMAT_NAME_VALUE_UNSPECIFIED;
  36.    
  37.     private List<Object> values = new ArrayList<>();
  38.    
  39.     public SAMLBuilderConfigAttribute(String configName){
  40.         this.configName = configName;
  41.     }
  42.    
  43.     public String getConfigName() {
  44.         return this.configName;
  45.     }
  46.    
  47.     public String getQualifiedName() {
  48.         return this.qualifiedName;
  49.     }
  50.     public void setQualifiedName(String qualifiedName) {
  51.         this.qualifiedName = qualifiedName;
  52.     }
  53.     public String getSimpleName() {
  54.         return this.simpleName;
  55.     }
  56.     public void setSimpleName(String simpleName) {
  57.         this.simpleName = simpleName;
  58.     }
  59.     public String getFormatName() {
  60.         return this.formatName;
  61.     }
  62.     public void setFormatName(String formatName) {
  63.         this.formatName = formatName;
  64.     }
  65.    
  66.     public void addValue(String value){
  67.         this.values.add(value);
  68.     }
  69.     public List<Object> getValues() {
  70.         return this.values;
  71.     }
  72. }