GestoreCredenzialiPD.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.pdd.core.credenziali.engine;

  21. import org.openspcoop2.core.id.IDSoggetto;
  22. import org.openspcoop2.message.OpenSPCoop2Message;
  23. import org.openspcoop2.pdd.core.PdDContext;
  24. import org.openspcoop2.pdd.core.connettori.InfoConnettoreIngresso;
  25. import org.openspcoop2.pdd.core.credenziali.Credenziali;
  26. import org.openspcoop2.pdd.core.credenziali.GestoreCredenzialiConfigurationException;
  27. import org.openspcoop2.pdd.core.credenziali.GestoreCredenzialiException;
  28. import org.openspcoop2.pdd.core.credenziali.IGestoreCredenziali;
  29. import org.openspcoop2.protocol.sdk.IProtocolFactory;

  30. /**    
  31.  * GestoreCredenzialiPD
  32.  *
  33.  * @author Poli Andrea (poli@link.it)
  34.  * @author $Author$
  35.  * @version $Rev$, $Date$
  36.  */
  37. public class GestoreCredenzialiPD implements IGestoreCredenziali {

  38.     private GestoreCredenzialiEngine gestore = null;
  39.     public GestoreCredenzialiPD(){
  40.        
  41.     }

  42.     @Override
  43.     public void init(PdDContext pddContext, IProtocolFactory<?> protocolFactory,
  44.             Object... args) {
  45.         this.gestore = new GestoreCredenzialiEngine(false, pddContext);
  46.     }
  47.    
  48.     @Override
  49.     public Credenziali elaborazioneCredenziali(
  50.             IDSoggetto idSoggetto,
  51.             InfoConnettoreIngresso infoConnettoreIngresso, OpenSPCoop2Message messaggio)
  52.             throws GestoreCredenzialiException,
  53.             GestoreCredenzialiConfigurationException {
  54.         return this.gestore.elaborazioneCredenziali(idSoggetto, infoConnettoreIngresso, messaggio);
  55.     }
  56.    
  57.     @Override
  58.     public String getIdentitaGestoreCredenziali() {
  59.         return this.gestore.getIdentitaGestoreCredenziali();
  60.     }

  61. }