GestoreCredenzialiPA.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.  * GestoreCredenzialiPA
  32.  *
  33.  * @author Poli Andrea (poli@link.it)
  34.  * @author $Author$
  35.  * @version $Rev$, $Date$
  36.  */
  37. public class GestoreCredenzialiPA implements IGestoreCredenziali {

  38.     private GestoreCredenzialiEngine gestore = null;
  39.     public GestoreCredenzialiPA(){
  40.        
  41.     }
  42.    
  43.     @Override
  44.     public void init(PdDContext pddContext, IProtocolFactory<?> protocolFactory,
  45.             Object... args) {
  46.         this.gestore = new GestoreCredenzialiEngine(true, pddContext);
  47.     }
  48.    
  49.     @Override
  50.     public Credenziali elaborazioneCredenziali(
  51.             IDSoggetto idSoggetto,
  52.             InfoConnettoreIngresso infoConnettoreIngresso, OpenSPCoop2Message messaggio)
  53.             throws GestoreCredenzialiException,
  54.             GestoreCredenzialiConfigurationException {
  55.         return this.gestore.elaborazioneCredenziali(idSoggetto,infoConnettoreIngresso, messaggio);
  56.     }

  57.     @Override
  58.     public String getIdentitaGestoreCredenziali() {
  59.         return this.gestore.getIdentitaGestoreCredenziali();
  60.     }


  61. }