TokenCacheItem.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.token;

  21. import java.io.Serializable;
  22. import java.util.Date;

  23. /**
  24.  * TokenCacheItem
  25.  *
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class TokenCacheItem implements Serializable {
  31.    
  32.     private static final long serialVersionUID = 1L;

  33.     private String idTransazione;
  34.    
  35.     private String token;
  36.    
  37.     private Date exp;
  38.    
  39.     private String digestAlgorithm;
  40.     private String digest;
  41.    
  42.     private boolean inCache;

  43.     public TokenCacheItem(String idTransazione) {
  44.         this.idTransazione = idTransazione;
  45.     }
  46.    
  47.     public String getToken() {
  48.         return this.token;
  49.     }

  50.     public void setToken(String token) {
  51.         this.token = token;
  52.     }

  53.     public String getDigestAlgorithm() {
  54.         return this.digestAlgorithm;
  55.     }

  56.     public void setDigestAlgorithm(String digestAlgorithm) {
  57.         this.digestAlgorithm = digestAlgorithm;
  58.     }

  59.     public String getDigest() {
  60.         return this.digest;
  61.     }

  62.     public void setDigest(String digest) {
  63.         this.digest = digest;
  64.     }

  65.     public boolean isInCache() {
  66.         return this.inCache;
  67.     }

  68.     public void setInCache(boolean inCache) {
  69.         this.inCache = inCache;
  70.     }
  71.    
  72.     public Date getExp() {
  73.         return this.exp;
  74.     }

  75.     public void setExp(Date exp) {
  76.         this.exp = exp;
  77.     }

  78.     public String getIdTransazione() {
  79.         return this.idTransazione;
  80.     }
  81.     public void setIdTransazione(String idTransazione) {
  82.         this.idTransazione = idTransazione;
  83.     }
  84. }