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 iat;
  38.     private Date exp;
  39.    
  40.     private String digestAlgorithm;
  41.     private String digest;
  42.    
  43.     private boolean inCache;

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

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

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

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

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

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

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

  69.     public void setInCache(boolean inCache) {
  70.         this.inCache = inCache;
  71.     }
  72.    
  73.     public Date getIat() {
  74.         return this.iat;
  75.     }

  76.     public void setIat(Date iat) {
  77.         this.iat = iat;
  78.     }
  79.    
  80.     public Date getExp() {
  81.         return this.exp;
  82.     }

  83.     public void setExp(Date exp) {
  84.         this.exp = exp;
  85.     }

  86.     public String getIdTransazione() {
  87.         return this.idTransazione;
  88.     }
  89.     public void setIdTransazione(String idTransazione) {
  90.         this.idTransazione = idTransazione;
  91.     }
  92. }